********************************************************************************
******************************* POWER CALC TABLES ******************************
************************************* for **************************************
****************************** A FIELD OF HER OWN ******************************
********************************************************************************
** CREATED BY: ALEXANDER FERTIG
** CREATED ON: 2022.06.29

estimates clear

********************************
local a=10
egen rank=rank(landsize), unique
sum rank if landsize==`a'
sum landsize if rank==r(max)+1
local aplus=r(max)
drop rank
********************************

# delimit ;
local landvars
	nplot
	form7_tot
	form7_femhoh
	f7_fhoh_nm;
local loanvars
	loan_num_fem
	loan_num_male;
local econvars
	aginc_fem_ln
	nai_f_ln
	aginc_ln;
local agencyvars1
	a_ag_ind11
	wt_ag_ind1
	hg_ag_ind1
	wha_ag_ind1;
local agencyvars2
	a_ex_ind11
	wt_ex_ind1
	hg_ex_ind1
	wha_ex_ind1;
local polivars
	pknow_min_c
	pknow_vta_c
	voteint_nat
	dem_pref
	demo_satisfy;
local wtpvars
	wtpcash_lb
	wtpcash_ub
	wtpland_lb
	wtpland_ub;
local varcat
	landvars
	loanvars
	econvars
	agencyvars1
	agencyvars2
	polivars
	wtpvars;
# delimit cr

foreach cat in `varcat'{
	foreach var in ``cat''{
		replace `var'=. if mi(`var')
		if "`var'"!="wt_ag_ind1" & "`var'"!="hg_ag_ind1" & ///
			"`var'"!="wha_ag_ind1" & "`var'"!="wt_ex_ind1" & ///
			"`var'"!="hg_ex_ind1" & "`var'"!="wha_ex_ind1" & ///
			"`var'"!="wtpcash_lb" & "`var'"!="wtpcash_ub" & ///
			"`var'"!="wtpland_lb" & "`var'"!="wtpland_ub"{
				
			rdrobust `var' landsize if bothreportland==1 & male==0, ///
				c(`aplus')
			local `var'_eff_0=e(tau_cl)
			local n_l=e(N_h_l)
			local n_r=e(N_h_r)
			local `var'_n_0=`n_l'+`n_r'
			local `var'_nl_0=`n_l'
			local `var'_nr_0=`n_r'
			local `var'_l=e(h_l)
			local `var'_r=e(h_r)
			sum `var' if landsize<`aplus' & landsize>=`aplus'-``var'_l' & ///
				bothreportland==1 & male==0
			local `var'_sd_0=r(sd)
			local `var'_esfrac_0=abs(``var'_eff_0'/``var'_sd_0')
			
			rdrobust `var' landsize if bothreportland==1 & male==1, ///
				c(`aplus') h(``var'_l' ``var'_r')
			local `var'_eff_1=e(tau_cl)
			local n_l=e(N_h_l)
			local n_r=e(N_h_r)
			local `var'_n_1=`n_l'+`n_r'
			local `var'_nl_1=`n_l'
			local `var'_nr_1=`n_r'
			local `var'_l=e(h_l)
			local `var'_r=e(h_r)
			sum `var' if landsize<`aplus' & landsize>=`aplus'-``var'_l' & ///
				bothreportland==1 & male==1
			local `var'_sd_1=r(sd)
			local `var'_esfrac_1=abs(``var'_eff_1'/``var'_sd_1')	
		}
		else{
			rdrobust `var' landsize if bothreportland==1 & male==0, c(`aplus')
			local `var'_eff_0=e(tau_cl)
			local n_l=e(N_h_l)
			local n_r=e(N_h_r)
			local `var'_n_0=`n_l'+`n_r'
			local `var'_n_1=.
			local `var'_nl_0=`n_l'
			local `var'_nr_0=`n_r'
			local `var'_nl_1=.
			local `var'_nr_1=.
			local `var'_l=e(h_l)
			local `var'_r=e(h_r)
			sum `var' if landsize<`aplus' & landsize>=`aplus'-``var'_l' & ///
				bothreportland==1 & male==0
			local `var'_sd_0=r(sd)
			local `var'_sd_1=0
			local `var'_esfrac_0=abs(``var'_eff_0'/``var'_sd_0')
		}
		foreach t in 1 2 5 8{
			local `var'_sd_0_`t'=``var'_sd_0'*.`t'
			local `var'_sd_1_`t'=``var'_sd_1'*.`t'
		}
		local `var'_sd_0_10=``var'_sd_0'*1
		local `var'_sd_1_10=``var'_sd_1'*1
		local `var'_sd_0_15=``var'_sd_0'*1.5
		local `var'_sd_1_15=``var'_sd_1'*1.5
		local `var'_sd_0_20=``var'_sd_0'*2
		local `var'_sd_1_20=``var'_sd_1'*2
		local `var'_sd_0_30=``var'_sd_0'*3
		local `var'_sd_1_30=``var'_sd_1'*3
		local `var'_sd_0_50=``var'_sd_0'*5
		local `var'_sd_1_50=``var'_sd_1'*5
		local `var'_sd_0_80=``var'_sd_0'*8
		local `var'_sd_1_80=``var'_sd_1'*8
		local `var'_sd_0_100=``var'_sd_0'*10
		local `var'_sd_1_100=``var'_sd_1'*10
	}
}

********* SAMPLE SIZE CALCULATIONS

foreach cat in `varcat'{
	foreach var in ``cat''{
		if "`var'"!="wt_ag_ind1" & "`var'"!="hg_ag_ind1" & ///
			"`var'"!="wha_ag_ind1" & "`var'"!="wt_ex_ind1" & ///
			"`var'"!="hg_ex_ind1" & "`var'"!="wha_ex_ind1" & ///
			"`var'"!="wtpcash_lb" & "`var'"!="wtpcash_ub" & ///
			"`var'"!="wtpland_lb" & "`var'"!="wtpland_ub"{
			foreach b in 6 8 95{
				
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_10') beta(.`b')
				local `var'_0_`b'_10=r(sampsi_h_tot)
				local `var'_l_0_`b'_10=r(sampsi_h_l)
				local `var'_r_0_`b'_10=r(sampsi_h_r)
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_15') beta(.`b')
				local `var'_0_`b'_15=r(sampsi_h_tot)
				local `var'_l_0_`b'_15=r(sampsi_h_l)
				local `var'_r_0_`b'_15=r(sampsi_h_r)
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_20') beta(.`b')
				local `var'_0_`b'_20=r(sampsi_h_tot)
				local `var'_l_0_`b'_20=r(sampsi_h_l)
				local `var'_r_0_`b'_20=r(sampsi_h_r)
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_30') beta(.`b')
				local `var'_0_`b'_30=r(sampsi_h_tot)
				local `var'_l_0_`b'_30=r(sampsi_h_l)
				local `var'_r_0_`b'_30=r(sampsi_h_r)
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_50') beta(.`b')
				local `var'_0_`b'_50=r(sampsi_h_tot)
				local `var'_l_0_`b'_50=r(sampsi_h_l)
				local `var'_r_0_`b'_50=r(sampsi_h_r)
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_80') beta(.`b')
				local `var'_0_`b'_80=r(sampsi_h_tot)
				local `var'_l_0_`b'_80=r(sampsi_h_l)
				local `var'_r_0_`b'_80=r(sampsi_h_r)
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_100') beta(.`b')
				local `var'_0_`b'_100=r(sampsi_h_tot)
				local `var'_l_0_`b'_100=r(sampsi_h_l)
				local `var'_r_0_`b'_100=r(sampsi_h_r)
				
				if ("`var'"=="loan_num_fem" & `b'>=95){
					local `var'_1_`b'_10=.
					local `var'_l_1_`b'_10=.
					local `var'_r_1_`b'_10=.
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_15') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_15=r(sampsi_h_tot)
					local `var'_l_1_`b'_15=r(sampsi_h_l)
					local `var'_r_1_`b'_15=r(sampsi_h_r)
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_20') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_20=r(sampsi_h_tot)
					local `var'_l_1_`b'_20=r(sampsi_h_l)
					local `var'_r_1_`b'_20=r(sampsi_h_r)
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_30') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_30=r(sampsi_h_tot)
					local `var'_l_1_`b'_30=r(sampsi_h_l)
					local `var'_r_1_`b'_30=r(sampsi_h_r)
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_50') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_50=r(sampsi_h_tot)
					local `var'_l_1_`b'_50=r(sampsi_h_l)
					local `var'_r_1_`b'_50=r(sampsi_h_r)
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_80') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_80=r(sampsi_h_tot)
					local `var'_l_1_`b'_80=r(sampsi_h_l)
					local `var'_r_1_`b'_80=r(sampsi_h_r)
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_100') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_100=r(sampsi_h_tot)
					local `var'_l_1_`b'_100=r(sampsi_h_l)
					local `var'_r_1_`b'_100=r(sampsi_h_r)
				}
				else{
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_10') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_10=r(sampsi_h_tot)
					local `var'_l_1_`b'_10=r(sampsi_h_l)
					local `var'_r_1_`b'_10=r(sampsi_h_r)
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_15') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_15=r(sampsi_h_tot)
					local `var'_l_1_`b'_15=r(sampsi_h_l)
					local `var'_r_1_`b'_15=r(sampsi_h_r)
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_20') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_20=r(sampsi_h_tot)
					local `var'_l_1_`b'_20=r(sampsi_h_l)
					local `var'_r_1_`b'_20=r(sampsi_h_r)
					rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_30') beta(.`b') samph(``var'_l' ``var'_r')
					local `var'_1_`b'_30=r(sampsi_h_tot)
					local `var'_l_1_`b'_30=r(sampsi_h_l)
					local `var'_r_1_`b'_30=r(sampsi_h_r)
					if ("`var'"=="pknow_vta_c" & `b'==6){
						local `var'_1_`b'_50=2
						local `var'_l_1_`b'_50=1
						local `var'_r_1_`b'_50=1
						local `var'_1_`b'_80=2
						local `var'_l_1_`b'_80=1
						local `var'_r_1_`b'_80=1
						local `var'_1_`b'_100=2
						local `var'_l_1_`b'_100=1
						local `var'_r_1_`b'_100=1
					}
					else if ("`var'"=="pknow_vta_c" & `b'==8){
						rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_50') beta(.`b') samph(``var'_l' ``var'_r')
						local `var'_1_`b'_50=r(sampsi_h_tot)
						local `var'_l_1_`b'_50=r(sampsi_h_l)
						local `var'_r_1_`b'_50=r(sampsi_h_r)
						local `var'_1_`b'_80=2
						local `var'_l_1_`b'_80=1
						local `var'_r_1_`b'_80=1
						local `var'_1_`b'_100=2
						local `var'_l_1_`b'_100=1
						local `var'_r_1_`b'_100=1
					}
					else if ("`var'"=="pknow_vta_c" & `b'==95){
						rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_50') beta(.`b') samph(``var'_l' ``var'_r')
						local `var'_1_`b'_50=r(sampsi_h_tot)
						local `var'_l_1_`b'_50=r(sampsi_h_l)
						local `var'_r_1_`b'_50=r(sampsi_h_r)
						rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_80') beta(.`b') samph(``var'_l' ``var'_r')
						local `var'_1_`b'_80=r(sampsi_h_tot)
						local `var'_l_1_`b'_80=r(sampsi_h_l)
						local `var'_r_1_`b'_80=r(sampsi_h_r)
						local `var'_1_`b'_100=2
						local `var'_l_1_`b'_100=1
						local `var'_r_1_`b'_100=1
					}
					else if ("`var'"=="pknow_min_c" & `b'<=6){
						rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_50') beta(.`b') samph(``var'_l' ``var'_r')
						local `var'_1_`b'_50=r(sampsi_h_tot)
						local `var'_l_1_`b'_50=r(sampsi_h_l)
						local `var'_r_1_`b'_50=r(sampsi_h_r)
						rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_80') beta(.`b') samph(``var'_l' ``var'_r')
						local `var'_1_`b'_80=r(sampsi_h_tot)
						local `var'_l_1_`b'_80=r(sampsi_h_l)
						local `var'_r_1_`b'_80=r(sampsi_h_r)
						local `var'_1_`b'_100=2
						local `var'_l_1_`b'_100=1
						local `var'_r_1_`b'_100=1
					}
					else{
						rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_50') beta(.`b') samph(``var'_l' ``var'_r')
						local `var'_1_`b'_50=r(sampsi_h_tot)
						local `var'_l_1_`b'_50=r(sampsi_h_l)
						local `var'_r_1_`b'_50=r(sampsi_h_r)
						rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_80') beta(.`b') samph(``var'_l' ``var'_r')
						local `var'_1_`b'_80=r(sampsi_h_tot)
						local `var'_l_1_`b'_80=r(sampsi_h_l)
						local `var'_r_1_`b'_80=r(sampsi_h_r)
						rdsampsi `var' landsize if bothreportland==1 & male==1, c(`aplus') tau(``var'_sd_1_100') beta(.`b') samph(``var'_l' ``var'_r')
						local `var'_1_`b'_100=r(sampsi_h_tot)
						local `var'_l_1_`b'_100=r(sampsi_h_l)
						local `var'_r_1_`b'_100=r(sampsi_h_r)
					}
				}
			}
		}
		else{
			foreach b in 6 8 95{
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_10') beta(.`b')
				local `var'_0_`b'_10=r(sampsi_h_tot)
				local `var'_l_0_`b'_10=r(sampsi_h_l)
				local `var'_r_0_`b'_10=r(sampsi_h_r)
				local `var'_1_`b'_10=.
				local `var'_l_1_`b'_10=.
				local `var'_r_1_`b'_10=.
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_15') beta(.`b')
				local `var'_0_`b'_15=r(sampsi_h_tot)
				local `var'_l_0_`b'_15=r(sampsi_h_l)
				local `var'_r_0_`b'_15=r(sampsi_h_r)
				local `var'_1_`b'_15=.
				local `var'_l_1_`b'_15=.
				local `var'_r_1_`b'_15=.
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_20') beta(.`b')
				local `var'_0_`b'_20=r(sampsi_h_tot)
				local `var'_l_0_`b'_20=r(sampsi_h_l)
				local `var'_r_0_`b'_20=r(sampsi_h_r)
				local `var'_1_`b'_20=.
				local `var'_l_1_`b'_20=.
				local `var'_r_1_`b'_20=.
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_30') beta(.`b')
				local `var'_0_`b'_30=r(sampsi_h_tot)
				local `var'_l_0_`b'_30=r(sampsi_h_l)
				local `var'_r_0_`b'_30=r(sampsi_h_r)
				local `var'_1_`b'_30=.
				local `var'_l_1_`b'_30=.
				local `var'_r_1_`b'_30=.
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_50') beta(.`b')
				local `var'_0_`b'_50=r(sampsi_h_tot)
				local `var'_l_0_`b'_50=r(sampsi_h_l)
				local `var'_r_0_`b'_50=r(sampsi_h_r)
				local `var'_1_`b'_50=.
				local `var'_l_1_`b'_50=.
				local `var'_r_1_`b'_50=.
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_80') beta(.`b')
				local `var'_0_`b'_80=r(sampsi_h_tot)
				local `var'_l_0_`b'_80=r(sampsi_h_l)
				local `var'_r_0_`b'_80=r(sampsi_h_r)
				local `var'_1_`b'_80=.
				local `var'_l_1_`b'_80=.
				local `var'_r_1_`b'_80=.
				rdsampsi `var' landsize if bothreportland==1 & male==0, c(`aplus') tau(``var'_sd_0_100') beta(.`b')
				local `var'_0_`b'_100=r(sampsi_h_tot)
				local `var'_l_0_`b'_100=r(sampsi_h_l)
				local `var'_r_0_`b'_100=r(sampsi_h_r)
				local `var'_1_`b'_100=.
				local `var'_l_1_`b'_100=.
				local `var'_r_1_`b'_100=.
			}
		}
	}
}

foreach cat in `varcat'{
	foreach var in ``cat''{
		forval s=0/1{
			foreach t in 1 2 5 8{
				foreach b in 6 8 95{
					local `var'_l_`s'_`b'_`t'=.
					local `var'_r_`s'_`b'_`t'=.
				}
			}
		}
	}
}


rdsampsi nplot landsize if bothreportland==1 & male==0, c(`aplus') tau(`nplot_sd_0_8') beta(.6)
local nplot_0_6_8=r(sampsi_h_tot)
local nplot_l_0_6_8=r(sampsi_h_l)
local nplot_r_0_6_8=r(sampsi_h_r)
rdsampsi nplot landsize if bothreportland==1 & male==0, c(`aplus') tau(`nplot_sd_0_5') beta(.6)
local nplot_0_6_5=r(sampsi_h_tot)
local nplot_l_0_6_5=r(sampsi_h_l)
local nplot_r_0_6_5=r(sampsi_h_r)
local nplot_0_6_2=.
local nplot_0_6_1=.
rdsampsi nplot landsize if bothreportland==1 & male==0, c(`aplus') tau(`nplot_sd_0_8') beta(.8)
local nplot_0_8_8=r(sampsi_h_tot)
local nplot_l_0_8_8=r(sampsi_h_l)
local nplot_r_0_8_8=r(sampsi_h_r)
rdsampsi nplot landsize if bothreportland==1 & male==0, c(`aplus') tau(`nplot_sd_0_5') beta(.8)
local nplot_0_8_5=r(sampsi_h_tot)
local nplot_l_0_8_5=r(sampsi_h_l)
local nplot_r_0_8_5=r(sampsi_h_r)
local nplot_0_8_2=.
local nplot_0_8_1=.
rdsampsi nplot landsize if bothreportland==1 & male==0, c(`aplus') tau(`nplot_sd_0_8') beta(.95)
local nplot_0_95_8=r(sampsi_h_tot)
local nplot_l_0_95_8=r(sampsi_h_l)
local nplot_r_0_95_8=r(sampsi_h_r)
rdsampsi nplot landsize if bothreportland==1 & male==0, c(`aplus') tau(`nplot_sd_0_5') beta(.95)
local nplot_0_95_5=r(sampsi_h_tot)
local nplot_l_0_95_5=r(sampsi_h_l)
local nplot_r_0_95_5=r(sampsi_h_r)
local nplot_0_95_2=.
local nplot_0_95_1=.

rdsampsi form7_tot landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_tot_sd_0_8') beta(.6)
local form7_tot_0_6_8=r(sampsi_h_tot)
local form7_tot_l_0_6_8=r(sampsi_h_l)
local form7_tot_r_0_6_8=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_tot_sd_0_5') beta(.6)
local form7_tot_0_6_5=r(sampsi_h_tot)
local form7_tot_l_0_6_5=r(sampsi_h_l)
local form7_tot_r_0_6_5=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_tot_sd_0_2') beta(.6)
local form7_tot_0_6_2=r(sampsi_h_tot)
local form7_tot_l_0_6_2=r(sampsi_h_l)
local form7_tot_r_0_6_2=r(sampsi_h_r)
local form7_tot_0_6_1=.
rdsampsi form7_tot landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_tot_sd_0_8') beta(.8)
local form7_tot_0_8_8=r(sampsi_h_tot)
local form7_tot_l_0_8_8=r(sampsi_h_l)
local form7_tot_r_0_8_8=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_tot_sd_0_5') beta(.8)
local form7_tot_0_8_5=r(sampsi_h_tot)
local form7_tot_l_0_8_5=r(sampsi_h_l)
local form7_tot_r_0_8_5=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_tot_sd_0_2') beta(.8)
local form7_tot_0_8_2=r(sampsi_h_tot)
local form7_tot_l_0_8_2=r(sampsi_h_l)
local form7_tot_r_0_8_2=r(sampsi_h_r)
local form7_tot_0_8_1=.
rdsampsi form7_tot landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_tot_sd_0_8') beta(.95)
local form7_tot_0_95_8=r(sampsi_h_tot)
local form7_tot_l_0_95_8=r(sampsi_h_l)
local form7_tot_r_0_95_8=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_tot_sd_0_5') beta(.95)
local form7_tot_0_95_5=r(sampsi_h_tot)
local form7_tot_l_0_95_5=r(sampsi_h_l)
local form7_tot_r_0_95_5=r(sampsi_h_r)
local form7_tot_0_95_2=.
local form7_tot_0_95_1=.

rdsampsi form7_femhoh landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_femhoh_sd_0_8') beta(.6)
local form7_femhoh_0_6_8=r(sampsi_h_tot)
local form7_femhoh_l_0_6_8=r(sampsi_h_l)
local form7_femhoh_r_0_6_8=r(sampsi_h_r)
rdsampsi form7_femhoh landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_femhoh_sd_0_5') beta(.6)
local form7_femhoh_0_6_5=r(sampsi_h_tot)
local form7_femhoh_l_0_6_5=r(sampsi_h_l)
local form7_femhoh_r_0_6_5=r(sampsi_h_r)
rdsampsi form7_femhoh landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_femhoh_sd_0_2') beta(.6)
local form7_femhoh_0_6_2=r(sampsi_h_tot)
local form7_femhoh_l_0_6_2=r(sampsi_h_l)
local form7_femhoh_r_0_6_2=r(sampsi_h_r)
local form7_femhoh_0_6_1=.
rdsampsi form7_femhoh landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_femhoh_sd_0_8') beta(.8)
local form7_femhoh_0_8_8=r(sampsi_h_tot)
local form7_femhoh_l_0_8_8=r(sampsi_h_l)
local form7_femhoh_r_0_8_8=r(sampsi_h_r)
rdsampsi form7_femhoh landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_femhoh_sd_0_5') beta(.8)
local form7_femhoh_0_8_5=r(sampsi_h_tot)
local form7_femhoh_l_0_8_5=r(sampsi_h_l)
local form7_femhoh_r_0_8_5=r(sampsi_h_r)
local form7_femhoh_0_8_2=.
local form7_femhoh_0_8_1=.
rdsampsi form7_femhoh landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_femhoh_sd_0_8') beta(.95)
local form7_femhoh_0_95_8=r(sampsi_h_tot)
local form7_femhoh_l_0_95_8=r(sampsi_h_l)
local form7_femhoh_r_0_95_8=r(sampsi_h_r)
rdsampsi form7_femhoh landsize if bothreportland==1 & male==0, c(`aplus') tau(`form7_femhoh_sd_0_5') beta(.95)
local form7_femhoh_0_95_5=r(sampsi_h_tot)
local form7_femhoh_l_0_95_5=r(sampsi_h_l)
local form7_femhoh_r_0_95_5=r(sampsi_h_r)
local form7_femhoh_0_95_2=.
local form7_femhoh_0_95_1=.

rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==0, c(`aplus') tau(`f7_fhoh_nm_sd_0_8') beta(.6)
local f7_fhoh_nm_0_6_8=r(sampsi_h_tot)
local f7_fhoh_nm_l_0_6_8=r(sampsi_h_l)
local f7_fhoh_nm_r_0_6_8=r(sampsi_h_r)
rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==0, c(`aplus') tau(`f7_fhoh_nm_sd_0_5') beta(.6)
local f7_fhoh_nm_0_6_5=r(sampsi_h_tot)
local f7_fhoh_nm_l_0_6_5=r(sampsi_h_l)
local f7_fhoh_nm_r_0_6_5=r(sampsi_h_r)
rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==0, c(`aplus') tau(`f7_fhoh_nm_sd_0_2') beta(.6)
local f7_fhoh_nm_0_6_2=r(sampsi_h_tot)
local f7_fhoh_nm_l_0_6_2=r(sampsi_h_l)
local f7_fhoh_nm_r_0_6_2=r(sampsi_h_r)
local f7_fhoh_nm_0_6_1=.
rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==0, c(`aplus') tau(`f7_fhoh_nm_sd_0_8') beta(.8)
local f7_fhoh_nm_0_8_8=r(sampsi_h_tot)
local f7_fhoh_nm_l_0_8_8=r(sampsi_h_l)
local f7_fhoh_nm_r_0_8_8=r(sampsi_h_r)
rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==0, c(`aplus') tau(`f7_fhoh_nm_sd_0_5') beta(.8)
local f7_fhoh_nm_0_8_5=r(sampsi_h_tot)
local f7_fhoh_nm_l_0_8_5=r(sampsi_h_l)
local f7_fhoh_nm_r_0_8_5=r(sampsi_h_r)
local f7_fhoh_nm_0_8_2=.
local f7_fhoh_nm_0_8_1=.
rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==0, c(`aplus') tau(`f7_fhoh_nm_sd_0_8') beta(.95)
local f7_fhoh_nm_0_95_8=r(sampsi_h_tot)
local f7_fhoh_nm_l_0_95_8=r(sampsi_h_l)
local f7_fhoh_nm_r_0_95_8=r(sampsi_h_r)
rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==0, c(`aplus') tau(`f7_fhoh_nm_sd_0_5') beta(.95)
local f7_fhoh_nm_0_95_5=r(sampsi_h_tot)
local f7_fhoh_nm_l_0_95_5=r(sampsi_h_l)
local f7_fhoh_nm_r_0_95_5=r(sampsi_h_r)
local f7_fhoh_nm_0_95_2=.
local f7_fhoh_nm_0_95_1=.

rdsampsi loan_num_fem landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_fem_sd_0_8') beta(.6)
local loan_num_fem_0_6_8=r(sampsi_h_tot)
local loan_num_fem_l_0_6_8=r(sampsi_h_l)
local loan_num_fem_r_0_6_8=r(sampsi_h_r)
rdsampsi loan_num_fem landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_fem_sd_0_5') beta(.6)
local loan_num_fem_0_6_5=r(sampsi_h_tot)
local loan_num_fem_l_0_6_5=r(sampsi_h_l)
local loan_num_fem_r_0_6_5=r(sampsi_h_r)
local loan_num_fem_0_6_2=.
local loan_num_fem_0_6_1=.
rdsampsi loan_num_fem landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_fem_sd_0_8') beta(.8)
local loan_num_fem_0_8_8=r(sampsi_h_tot)
local loan_num_fem_l_0_8_8=r(sampsi_h_l)
local loan_num_fem_r_0_8_8=r(sampsi_h_r)
rdsampsi loan_num_fem landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_fem_sd_0_5') beta(.8)
local loan_num_fem_0_8_5=r(sampsi_h_tot)
local loan_num_fem_l_0_8_5=r(sampsi_h_l)
local loan_num_fem_r_0_8_5=r(sampsi_h_r)
local loan_num_fem_0_8_2=.
local loan_num_fem_0_8_1=.
rdsampsi loan_num_fem landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_fem_sd_0_8') beta(.95)
local loan_num_fem_0_95_8=r(sampsi_h_tot)
local loan_num_fem_l_0_95_8=r(sampsi_h_l)
local loan_num_fem_r_0_95_8=r(sampsi_h_r)
local loan_num_fem_0_95_5=.
local loan_num_fem_0_95_2=.
local loan_num_fem_0_95_1=.

rdsampsi loan_num_male landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_male_sd_0_8') beta(.6)
local loan_num_male_0_6_8=r(sampsi_h_tot)
local loan_num_male_l_0_6_8=r(sampsi_h_l)
local loan_num_male_r_0_6_8=r(sampsi_h_r)
rdsampsi loan_num_male landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_male_sd_0_5') beta(.6)
local loan_num_male_0_6_5=r(sampsi_h_tot)
local loan_num_male_l_0_6_5=r(sampsi_h_l)
local loan_num_male_r_0_6_5=r(sampsi_h_r)
local loan_num_male_0_6_2=.
local loan_num_male_0_6_1=.
rdsampsi loan_num_male landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_male_sd_0_8') beta(.8)
local loan_num_male_0_8_8=r(sampsi_h_tot)
local loan_num_male_l_0_8_8=r(sampsi_h_l)
local loan_num_male_r_0_8_8=r(sampsi_h_r)
rdsampsi loan_num_male landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_male_sd_0_5') beta(.8)
local loan_num_male_0_8_5=r(sampsi_h_tot)
local loan_num_male_l_0_8_5=r(sampsi_h_l)
local loan_num_male_r_0_8_5=r(sampsi_h_r)
local loan_num_male_0_8_2=.
local loan_num_male_0_8_1=.
rdsampsi loan_num_male landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_male_sd_0_8') beta(.95)
local loan_num_male_0_95_8=r(sampsi_h_tot)
local loan_num_male_l_0_95_8=r(sampsi_h_l)
local loan_num_male_r_0_95_8=r(sampsi_h_r)
rdsampsi loan_num_male landsize if bothreportland==1 & male==0, c(`aplus') tau(`loan_num_male_sd_0_5') beta(.95)
local loan_num_male_0_95_5=r(sampsi_h_tot)
local loan_num_male_l_0_95_5=r(sampsi_h_l)
local loan_num_male_r_0_95_5=r(sampsi_h_r)
local loan_num_male_0_95_2=.
local loan_num_male_0_95_1=.

rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_fem_ln_sd_0_8') beta(.6)
local aginc_fem_ln_0_6_8=r(sampsi_h_tot)
local aginc_fem_ln_l_0_6_8=r(sampsi_h_l)
local aginc_fem_ln_r_0_6_8=r(sampsi_h_r)
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_fem_ln_sd_0_5') beta(.6)
local aginc_fem_ln_0_6_5=r(sampsi_h_tot)
local aginc_fem_ln_l_0_6_5=r(sampsi_h_l)
local aginc_fem_ln_r_0_6_5=r(sampsi_h_r)
local aginc_fem_ln_0_6_2=.
local aginc_fem_ln_0_6_1=.
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_fem_ln_sd_0_8') beta(.8)
local aginc_fem_ln_0_8_8=r(sampsi_h_tot)
local aginc_fem_ln_l_0_8_8=r(sampsi_h_l)
local aginc_fem_ln_r_0_8_8=r(sampsi_h_r)
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_fem_ln_sd_0_5') beta(.8)
local aginc_fem_ln_0_8_5=r(sampsi_h_tot)
local aginc_fem_ln_l_0_8_5=r(sampsi_h_l)
local aginc_fem_ln_r_0_8_5=r(sampsi_h_r)
local aginc_fem_ln_0_8_2=.
local aginc_fem_ln_0_8_1=.
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_fem_ln_sd_0_8') beta(.95)
local aginc_fem_ln_0_95_8=r(sampsi_h_tot)
local aginc_fem_ln_l_0_95_8=r(sampsi_h_l)
local aginc_fem_ln_r_0_95_8=r(sampsi_h_r)
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_fem_ln_sd_0_5') beta(.95)
local aginc_fem_ln_0_95_5=r(sampsi_h_tot)
local aginc_fem_ln_l_0_95_5=r(sampsi_h_l)
local aginc_fem_ln_r_0_95_5=r(sampsi_h_r)
local aginc_fem_ln_0_95_2=.
local aginc_fem_ln_0_95_1=.

rdsampsi nai_f_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`nai_f_ln_sd_0_8') beta(.6)
local nai_f_ln_0_6_8=r(sampsi_h_tot)
local nai_f_ln_l_0_6_8=r(sampsi_h_l)
local nai_f_ln_r_0_6_8=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`nai_f_ln_sd_0_5') beta(.6)
local nai_f_ln_0_6_5=r(sampsi_h_tot)
local nai_f_ln_l_0_6_5=r(sampsi_h_l)
local nai_f_ln_r_0_6_5=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`nai_f_ln_sd_0_2') beta(.6)
local nai_f_ln_0_6_2=r(sampsi_h_tot)
local nai_f_ln_l_0_6_2=r(sampsi_h_l)
local nai_f_ln_r_0_6_2=r(sampsi_h_r)
local nai_f_ln_0_6_1=.
rdsampsi nai_f_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`nai_f_ln_sd_0_8') beta(.8)
local nai_f_ln_0_8_8=r(sampsi_h_tot)
local nai_f_ln_l_0_8_8=r(sampsi_h_l)
local nai_f_ln_r_0_8_8=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`nai_f_ln_sd_0_5') beta(.8)
local nai_f_ln_0_8_5=r(sampsi_h_tot)
local nai_f_ln_l_0_8_5=r(sampsi_h_l)
local nai_f_ln_r_0_8_5=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`nai_f_ln_sd_0_2') beta(.8)
local nai_f_ln_0_8_2=r(sampsi_h_tot)
local nai_f_ln_l_0_8_2=r(sampsi_h_l)
local nai_f_ln_r_0_8_2=r(sampsi_h_r)
local nai_f_ln_0_8_1=.
rdsampsi nai_f_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`nai_f_ln_sd_0_8') beta(.95)
local nai_f_ln_0_95_8=r(sampsi_h_tot)
local nai_f_ln_l_0_95_8=r(sampsi_h_l)
local nai_f_ln_r_0_95_8=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`nai_f_ln_sd_0_5') beta(.95)
local nai_f_ln_0_95_5=r(sampsi_h_tot)
local nai_f_ln_l_0_95_5=r(sampsi_h_l)
local nai_f_ln_r_0_95_5=r(sampsi_h_r)
local nai_f_ln_0_95_2=.
local nai_f_ln_0_95_1=.

rdsampsi aginc_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_ln_sd_0_8') beta(.6)
local aginc_ln_0_6_8=r(sampsi_h_tot)
local aginc_ln_l_0_6_8=r(sampsi_h_l)
local aginc_ln_r_0_6_8=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_ln_sd_0_5') beta(.6)
local aginc_ln_0_6_5=r(sampsi_h_tot)
local aginc_ln_l_0_6_5=r(sampsi_h_l)
local aginc_ln_r_0_6_5=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_ln_sd_0_2') beta(.6)
local aginc_ln_0_6_2=r(sampsi_h_tot)
local aginc_ln_l_0_6_2=r(sampsi_h_l)
local aginc_ln_r_0_6_2=r(sampsi_h_r)
local aginc_ln_0_6_1=.
rdsampsi aginc_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_ln_sd_0_8') beta(.8)
local aginc_ln_0_8_8=r(sampsi_h_tot)
local aginc_ln_l_0_8_8=r(sampsi_h_l)
local aginc_ln_r_0_8_8=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_ln_sd_0_5') beta(.8)
local aginc_ln_0_8_5=r(sampsi_h_tot)
local aginc_ln_l_0_8_5=r(sampsi_h_l)
local aginc_ln_r_0_8_5=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_ln_sd_0_2') beta(.8)
local aginc_ln_0_8_2=r(sampsi_h_tot)
local aginc_ln_l_0_8_2=r(sampsi_h_l)
local aginc_ln_r_0_8_2=r(sampsi_h_r)
local aginc_ln_0_8_1=.
rdsampsi aginc_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_ln_sd_0_8') beta(.95)
local aginc_ln_0_95_8=r(sampsi_h_tot)
local aginc_ln_l_0_95_8=r(sampsi_h_l)
local aginc_ln_r_0_95_8=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==0, c(`aplus') tau(`aginc_ln_sd_0_5') beta(.95)
local aginc_ln_0_95_5=r(sampsi_h_tot)
local aginc_ln_l_0_95_5=r(sampsi_h_l)
local aginc_ln_r_0_95_5=r(sampsi_h_r)
local aginc_ln_0_95_2=.
local aginc_ln_0_95_1=.

rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ag_ind11_sd_0_8') beta(.6)
local a_ag_ind11_0_6_8=r(sampsi_h_tot)
local a_ag_ind11_l_0_6_8=r(sampsi_h_l)
local a_ag_ind11_r_0_6_8=r(sampsi_h_r)
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ag_ind11_sd_0_5') beta(.6)
local a_ag_ind11_0_6_5=r(sampsi_h_tot)
local a_ag_ind11_l_0_6_5=r(sampsi_h_l)
local a_ag_ind11_r_0_6_5=r(sampsi_h_r)
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ag_ind11_sd_0_2') beta(.6)
local a_ag_ind11_0_6_2=r(sampsi_h_tot)
local a_ag_ind11_l_0_6_2=r(sampsi_h_l)
local a_ag_ind11_r_0_6_2=r(sampsi_h_r)
local a_ag_ind11_0_6_1=.
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ag_ind11_sd_0_8') beta(.8)
local a_ag_ind11_0_8_8=r(sampsi_h_tot)
local a_ag_ind11_l_0_8_8=r(sampsi_h_l)
local a_ag_ind11_r_0_8_8=r(sampsi_h_r)
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ag_ind11_sd_0_5') beta(.8)
local a_ag_ind11_0_8_5=r(sampsi_h_tot)
local a_ag_ind11_l_0_8_5=r(sampsi_h_l)
local a_ag_ind11_r_0_8_5=r(sampsi_h_r)
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ag_ind11_sd_0_2') beta(.8)
local a_ag_ind11_0_8_2=r(sampsi_h_tot)
local a_ag_ind11_l_0_8_2=r(sampsi_h_l)
local a_ag_ind11_r_0_8_2=r(sampsi_h_r)
local a_ag_ind11_0_8_1=.
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ag_ind11_sd_0_8') beta(.95)
local a_ag_ind11_0_95_8=r(sampsi_h_tot)
local a_ag_ind11_l_0_95_8=r(sampsi_h_l)
local a_ag_ind11_r_0_95_8=r(sampsi_h_r)
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ag_ind11_sd_0_5') beta(.95)
local a_ag_ind11_0_95_5=r(sampsi_h_tot)
local a_ag_ind11_l_0_95_5=r(sampsi_h_l)
local a_ag_ind11_r_0_95_5=r(sampsi_h_r)
local a_ag_ind11_0_95_2=.
local a_ag_ind11_0_95_1=.

rdsampsi wt_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ag_ind1_sd_0_8') beta(.6)
local wt_ag_ind1_0_6_8=r(sampsi_h_tot)
local wt_ag_ind1_l_0_6_8=r(sampsi_h_l)
local wt_ag_ind1_r_0_6_8=r(sampsi_h_r)
rdsampsi wt_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ag_ind1_sd_0_5') beta(.6)
local wt_ag_ind1_0_6_5=r(sampsi_h_tot)
local wt_ag_ind1_l_0_6_5=r(sampsi_h_l)
local wt_ag_ind1_r_0_6_5=r(sampsi_h_r)
rdsampsi wt_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ag_ind1_sd_0_2') beta(.6)
local wt_ag_ind1_0_6_2=r(sampsi_h_tot)
local wt_ag_ind1_l_0_6_2=r(sampsi_h_l)
local wt_ag_ind1_r_0_6_2=r(sampsi_h_r)
local wt_ag_ind1_0_6_1=.
rdsampsi wt_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ag_ind1_sd_0_8') beta(.8)
local wt_ag_ind1_0_8_8=r(sampsi_h_tot)
local wt_ag_ind1_l_0_8_8=r(sampsi_h_l)
local wt_ag_ind1_r_0_8_8=r(sampsi_h_r)
rdsampsi wt_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ag_ind1_sd_0_5') beta(.8)
local wt_ag_ind1_0_8_5=r(sampsi_h_tot)
local wt_ag_ind1_l_0_8_5=r(sampsi_h_l)
local wt_ag_ind1_r_0_8_5=r(sampsi_h_r)
rdsampsi wt_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ag_ind1_sd_0_2') beta(.8)
local wt_ag_ind1_0_8_2=r(sampsi_h_tot)
local wt_ag_ind1_l_0_8_2=r(sampsi_h_l)
local wt_ag_ind1_r_0_8_2=r(sampsi_h_r)
local wt_ag_ind1_0_8_1=.
rdsampsi wt_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ag_ind1_sd_0_8') beta(.95)
local wt_ag_ind1_0_95_8=r(sampsi_h_tot)
local wt_ag_ind1_l_0_95_8=r(sampsi_h_l)
local wt_ag_ind1_r_0_95_8=r(sampsi_h_r)
rdsampsi wt_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ag_ind1_sd_0_5') beta(.95)
local wt_ag_ind1_0_95_5=r(sampsi_h_tot)
local wt_ag_ind1_l_0_95_5=r(sampsi_h_l)
local wt_ag_ind1_r_0_95_5=r(sampsi_h_r)
local wt_ag_ind1_0_95_2=.
local wt_ag_ind1_0_95_1=.

rdsampsi hg_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ag_ind1_sd_0_8') beta(.6)
local hg_ag_ind1_0_6_8=r(sampsi_h_tot)
local hg_ag_ind1_l_0_6_8=r(sampsi_h_l)
local hg_ag_ind1_r_0_6_8=r(sampsi_h_r)
rdsampsi hg_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ag_ind1_sd_0_5') beta(.6)
local hg_ag_ind1_0_6_5=r(sampsi_h_tot)
local hg_ag_ind1_l_0_6_5=r(sampsi_h_l)
local hg_ag_ind1_r_0_6_5=r(sampsi_h_r)
local hg_ag_ind1_0_6_2=.
local hg_ag_ind1_0_6_1=.
rdsampsi hg_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ag_ind1_sd_0_8') beta(.8)
local hg_ag_ind1_0_8_8=r(sampsi_h_tot)
local hg_ag_ind1_l_0_8_8=r(sampsi_h_l)
local hg_ag_ind1_r_0_8_8=r(sampsi_h_r)
rdsampsi hg_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ag_ind1_sd_0_5') beta(.8)
local hg_ag_ind1_0_8_5=r(sampsi_h_tot)
local hg_ag_ind1_l_0_8_5=r(sampsi_h_l)
local hg_ag_ind1_r_0_8_5=r(sampsi_h_r)
local hg_ag_ind1_0_8_2=.
local hg_ag_ind1_0_8_1=.
rdsampsi hg_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ag_ind1_sd_0_8') beta(.95)
local hg_ag_ind1_0_95_8=r(sampsi_h_tot)
local hg_ag_ind1_l_0_95_8=r(sampsi_h_l)
local hg_ag_ind1_r_0_95_8=r(sampsi_h_r)
local hg_ag_ind1_0_95_5=.
local hg_ag_ind1_0_95_2=.
local hg_ag_ind1_0_95_1=.

rdsampsi wha_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ag_ind1_sd_0_8') beta(.6)
local wha_ag_ind1_0_6_8=r(sampsi_h_tot)
local wha_ag_ind1_l_0_6_8=r(sampsi_h_l)
local wha_ag_ind1_r_0_6_8=r(sampsi_h_r)
rdsampsi wha_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ag_ind1_sd_0_5') beta(.6)
local wha_ag_ind1_0_6_5=r(sampsi_h_tot)
local wha_ag_ind1_l_0_6_5=r(sampsi_h_l)
local wha_ag_ind1_r_0_6_5=r(sampsi_h_r)
local wha_ag_ind1_0_6_2=.
local wha_ag_ind1_0_6_1=.
rdsampsi wha_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ag_ind1_sd_0_8') beta(.8)
local wha_ag_ind1_0_8_8=r(sampsi_h_tot)
local wha_ag_ind1_l_0_8_8=r(sampsi_h_l)
local wha_ag_ind1_r_0_8_8=r(sampsi_h_r)
rdsampsi wha_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ag_ind1_sd_0_5') beta(.8)
local wha_ag_ind1_0_8_5=r(sampsi_h_tot)
local wha_ag_ind1_l_0_8_5=r(sampsi_h_l)
local wha_ag_ind1_r_0_8_5=r(sampsi_h_r)
local wha_ag_ind1_0_8_2=.
local wha_ag_ind1_0_8_1=.
rdsampsi wha_ag_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ag_ind1_sd_0_8') beta(.95)
local wha_ag_ind1_0_95_8=r(sampsi_h_tot)
local wha_ag_ind1_l_0_95_8=r(sampsi_h_l)
local wha_ag_ind1_r_0_95_8=r(sampsi_h_r)
local wha_ag_ind1_0_95_5=.
local wha_ag_ind1_0_95_2=.
local wha_ag_ind1_0_95_1=.

rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ex_ind11_sd_0_8') beta(.6)
local a_ex_ind11_0_6_8=r(sampsi_h_tot)
local a_ex_ind11_l_0_6_8=r(sampsi_h_l)
local a_ex_ind11_r_0_6_8=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ex_ind11_sd_0_5') beta(.6)
local a_ex_ind11_0_6_5=r(sampsi_h_tot)
local a_ex_ind11_l_0_6_5=r(sampsi_h_l)
local a_ex_ind11_r_0_6_5=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ex_ind11_sd_0_2') beta(.6)
local a_ex_ind11_0_6_2=r(sampsi_h_tot)
local a_ex_ind11_l_0_6_2=r(sampsi_h_l)
local a_ex_ind11_r_0_6_2=r(sampsi_h_r)
local a_ex_ind11_0_6_1=.
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ex_ind11_sd_0_8') beta(.8)
local a_ex_ind11_0_8_8=r(sampsi_h_tot)
local a_ex_ind11_l_0_8_8=r(sampsi_h_l)
local a_ex_ind11_r_0_8_8=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ex_ind11_sd_0_5') beta(.8)
local a_ex_ind11_0_8_5=r(sampsi_h_tot)
local a_ex_ind11_l_0_8_5=r(sampsi_h_l)
local a_ex_ind11_r_0_8_5=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ex_ind11_sd_0_2') beta(.8)
local a_ex_ind11_0_8_2=r(sampsi_h_tot)
local a_ex_ind11_l_0_8_2=r(sampsi_h_l)
local a_ex_ind11_r_0_8_2=r(sampsi_h_r)
local a_ex_ind11_0_8_1=.
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ex_ind11_sd_0_8') beta(.95)
local a_ex_ind11_0_95_8=r(sampsi_h_tot)
local a_ex_ind11_l_0_95_8=r(sampsi_h_l)
local a_ex_ind11_r_0_95_8=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==0, c(`aplus') tau(`a_ex_ind11_sd_0_5') beta(.95)
local a_ex_ind11_0_95_5=r(sampsi_h_tot)
local a_ex_ind11_l_0_95_5=r(sampsi_h_l)
local a_ex_ind11_r_0_95_5=r(sampsi_h_r)
local a_ex_ind11_0_95_2=.
local a_ex_ind11_0_95_1=.

rdsampsi wt_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ex_ind1_sd_0_8') beta(.6)
local wt_ex_ind1_0_6_8=r(sampsi_h_tot)
local wt_ex_ind1_l_0_6_8=r(sampsi_h_l)
local wt_ex_ind1_r_0_6_8=r(sampsi_h_r)
rdsampsi wt_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ex_ind1_sd_0_5') beta(.6)
local wt_ex_ind1_0_6_5=r(sampsi_h_tot)
local wt_ex_ind1_l_0_6_5=r(sampsi_h_l)
local wt_ex_ind1_r_0_6_5=r(sampsi_h_r)
rdsampsi wt_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ex_ind1_sd_0_2') beta(.6)
local wt_ex_ind1_0_6_2=r(sampsi_h_tot)
local wt_ex_ind1_l_0_6_2=r(sampsi_h_l)
local wt_ex_ind1_r_0_6_2=r(sampsi_h_r)
local wt_ex_ind1_0_6_1=.
rdsampsi wt_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ex_ind1_sd_0_8') beta(.8)
local wt_ex_ind1_0_8_8=r(sampsi_h_tot)
local wt_ex_ind1_l_0_8_8=r(sampsi_h_l)
local wt_ex_ind1_r_0_8_8=r(sampsi_h_r)
rdsampsi wt_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ex_ind1_sd_0_5') beta(.8)
local wt_ex_ind1_0_8_5=r(sampsi_h_tot)
local wt_ex_ind1_l_0_8_5=r(sampsi_h_l)
local wt_ex_ind1_r_0_8_5=r(sampsi_h_r)
rdsampsi wt_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ex_ind1_sd_0_2') beta(.8)
local wt_ex_ind1_0_8_2=r(sampsi_h_tot)
local wt_ex_ind1_l_0_8_2=r(sampsi_h_l)
local wt_ex_ind1_r_0_8_2=r(sampsi_h_r)
local wt_ex_ind1_0_8_1=.
rdsampsi wt_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ex_ind1_sd_0_8') beta(.95)
local wt_ex_ind1_0_95_8=r(sampsi_h_tot)
local wt_ex_ind1_l_0_95_8=r(sampsi_h_l)
local wt_ex_ind1_r_0_95_8=r(sampsi_h_r)
rdsampsi wt_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wt_ex_ind1_sd_0_5') beta(.95)
local wt_ex_ind1_0_95_5=r(sampsi_h_tot)
local wt_ex_ind1_l_0_95_5=r(sampsi_h_l)
local wt_ex_ind1_r_0_95_5=r(sampsi_h_r)
local wt_ex_ind1_0_95_2=.
local wt_ex_ind1_0_95_1=.

rdsampsi hg_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ex_ind1_sd_0_8') beta(.6)
local hg_ex_ind1_0_6_8=r(sampsi_h_tot)
local hg_ex_ind1_l_0_6_8=r(sampsi_h_l)
local hg_ex_ind1_r_0_6_8=r(sampsi_h_r)
rdsampsi hg_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ex_ind1_sd_0_5') beta(.6)
local hg_ex_ind1_0_6_5=r(sampsi_h_tot)
local hg_ex_ind1_l_0_6_5=r(sampsi_h_l)
local hg_ex_ind1_r_0_6_5=r(sampsi_h_r)
local hg_ex_ind1_0_6_2=.
local hg_ex_ind1_0_6_1=.
rdsampsi hg_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ex_ind1_sd_0_8') beta(.8)
local hg_ex_ind1_0_8_8=r(sampsi_h_tot)
local hg_ex_ind1_l_0_8_8=r(sampsi_h_l)
local hg_ex_ind1_r_0_8_8=r(sampsi_h_r)
rdsampsi hg_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ex_ind1_sd_0_5') beta(.8)
local hg_ex_ind1_0_8_5=r(sampsi_h_tot)
local hg_ex_ind1_l_0_8_5=r(sampsi_h_l)
local hg_ex_ind1_r_0_8_5=r(sampsi_h_r)
local hg_ex_ind1_0_8_2=.
local hg_ex_ind1_0_8_1=.
rdsampsi hg_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`hg_ex_ind1_sd_0_8') beta(.95)
local hg_ex_ind1_0_95_8=r(sampsi_h_tot)
local hg_ex_ind1_l_0_95_8=r(sampsi_h_l)
local hg_ex_ind1_r_0_95_8=r(sampsi_h_r)
local hg_ex_ind1_0_95_5=.
local hg_ex_ind1_0_95_2=.
local hg_ex_ind1_0_95_1=.

rdsampsi wha_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ex_ind1_sd_0_8') beta(.6)
local wha_ex_ind1_0_6_8=r(sampsi_h_tot)
local wha_ex_ind1_l_0_6_8=r(sampsi_h_l)
local wha_ex_ind1_r_0_6_8=r(sampsi_h_r)
rdsampsi wha_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ex_ind1_sd_0_5') beta(.6)
local wha_ex_ind1_0_6_5=r(sampsi_h_tot)
local wha_ex_ind1_l_0_6_5=r(sampsi_h_l)
local wha_ex_ind1_r_0_6_5=r(sampsi_h_r)
rdsampsi wha_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ex_ind1_sd_0_2') beta(.6)
local wha_ex_ind1_0_6_2=r(sampsi_h_tot)
local wha_ex_ind1_l_0_6_2=r(sampsi_h_l)
local wha_ex_ind1_r_0_6_2=r(sampsi_h_r)
local wha_ex_ind1_0_6_1=.
rdsampsi wha_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ex_ind1_sd_0_8') beta(.8)
local wha_ex_ind1_0_8_8=r(sampsi_h_tot)
local wha_ex_ind1_l_0_8_8=r(sampsi_h_l)
local wha_ex_ind1_r_0_8_8=r(sampsi_h_r)
rdsampsi wha_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ex_ind1_sd_0_5') beta(.8)
local wha_ex_ind1_0_8_5=r(sampsi_h_tot)
local wha_ex_ind1_l_0_8_5=r(sampsi_h_l)
local wha_ex_ind1_r_0_8_5=r(sampsi_h_r)
local wha_ex_ind1_0_8_2=.
local wha_ex_ind1_0_8_1=.
rdsampsi wha_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ex_ind1_sd_0_8') beta(.95)
local wha_ex_ind1_0_95_8=r(sampsi_h_tot)
local wha_ex_ind1_l_0_95_8=r(sampsi_h_l)
local wha_ex_ind1_r_0_95_8=r(sampsi_h_r)
rdsampsi wha_ex_ind1 landsize if bothreportland==1 & male==0, c(`aplus') tau(`wha_ex_ind1_sd_0_5') beta(.95)
local wha_ex_ind1_0_95_5=r(sampsi_h_tot)
local wha_ex_ind1_l_0_95_5=r(sampsi_h_l)
local wha_ex_ind1_r_0_95_5=r(sampsi_h_r)
local wha_ex_ind1_0_95_2=.
local wha_ex_ind1_0_95_1=.

rdsampsi pknow_min_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_min_c_sd_0_8') beta(.6)
local pknow_min_c_0_6_8=r(sampsi_h_tot)
local pknow_min_c_l_0_6_8=r(sampsi_h_l)
local pknow_min_c_r_0_6_8=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_min_c_sd_0_5') beta(.6)
local pknow_min_c_0_6_5=r(sampsi_h_tot)
local pknow_min_c_l_0_6_5=r(sampsi_h_l)
local pknow_min_c_r_0_6_5=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_min_c_sd_0_2') beta(.6)
local pknow_min_c_0_6_2=r(sampsi_h_tot)
local pknow_min_c_l_0_6_2=r(sampsi_h_l)
local pknow_min_c_r_0_6_2=r(sampsi_h_r)
local pknow_min_c_0_6_1=.
rdsampsi pknow_min_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_min_c_sd_0_8') beta(.8)
local pknow_min_c_0_8_8=r(sampsi_h_tot)
local pknow_min_c_l_0_8_8=r(sampsi_h_l)
local pknow_min_c_r_0_8_8=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_min_c_sd_0_5') beta(.8)
local pknow_min_c_0_8_5=r(sampsi_h_tot)
local pknow_min_c_l_0_8_5=r(sampsi_h_l)
local pknow_min_c_r_0_8_5=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_min_c_sd_0_2') beta(.8)
local pknow_min_c_0_8_2=r(sampsi_h_tot)
local pknow_min_c_l_0_8_2=r(sampsi_h_l)
local pknow_min_c_r_0_8_2=r(sampsi_h_r)
local pknow_min_c_0_8_1=.
rdsampsi pknow_min_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_min_c_sd_0_8') beta(.95)
local pknow_min_c_0_95_8=r(sampsi_h_tot)
local pknow_min_c_l_0_95_8=r(sampsi_h_l)
local pknow_min_c_r_0_95_8=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_min_c_sd_0_5') beta(.95)
local pknow_min_c_0_95_5=r(sampsi_h_tot)
local pknow_min_c_l_0_95_5=r(sampsi_h_l)
local pknow_min_c_r_0_95_5=r(sampsi_h_r)
local pknow_min_c_0_95_2=.
local pknow_min_c_0_95_1=.

rdsampsi pknow_vta_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_vta_c_sd_0_8') beta(.6)
local pknow_vta_c_0_6_8=r(sampsi_h_tot)
local pknow_vta_c_l_0_6_8=r(sampsi_h_l)
local pknow_vta_c_r_0_6_8=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_vta_c_sd_0_5') beta(.6)
local pknow_vta_c_0_6_5=r(sampsi_h_tot)
local pknow_vta_c_l_0_6_5=r(sampsi_h_l)
local pknow_vta_c_r_0_6_5=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_vta_c_sd_0_2') beta(.6)
local pknow_vta_c_0_6_2=r(sampsi_h_tot)
local pknow_vta_c_l_0_6_2=r(sampsi_h_l)
local pknow_vta_c_r_0_6_2=r(sampsi_h_r)
local pknow_vta_c_0_6_1=.
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_vta_c_sd_0_8') beta(.8)
local pknow_vta_c_0_8_8=r(sampsi_h_tot)
local pknow_vta_c_l_0_8_8=r(sampsi_h_l)
local pknow_vta_c_r_0_8_8=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_vta_c_sd_0_5') beta(.8)
local pknow_vta_c_0_8_5=r(sampsi_h_tot)
local pknow_vta_c_l_0_8_5=r(sampsi_h_l)
local pknow_vta_c_r_0_8_5=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_vta_c_sd_0_2') beta(.8)
local pknow_vta_c_0_8_2=r(sampsi_h_tot)
local pknow_vta_c_l_0_8_2=r(sampsi_h_l)
local pknow_vta_c_r_0_8_2=r(sampsi_h_r)
local pknow_vta_c_0_8_1=.
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_vta_c_sd_0_8') beta(.95)
local pknow_vta_c_0_95_8=r(sampsi_h_tot)
local pknow_vta_c_l_0_95_8=r(sampsi_h_l)
local pknow_vta_c_r_0_95_8=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==0, c(`aplus') tau(`pknow_vta_c_sd_0_5') beta(.95)
local pknow_vta_c_0_95_5=r(sampsi_h_tot)
local pknow_vta_c_l_0_95_5=r(sampsi_h_l)
local pknow_vta_c_r_0_95_5=r(sampsi_h_r)
local pknow_vta_c_0_95_2=.
local pknow_vta_c_0_95_1=.

rdsampsi voteint_nat landsize if bothreportland==1 & male==0, c(`aplus') tau(`voteint_nat_sd_0_8') beta(.6)
local voteint_nat_0_6_8=r(sampsi_h_tot)
local voteint_nat_l_0_6_8=r(sampsi_h_l)
local voteint_nat_r_0_6_8=r(sampsi_h_r)
rdsampsi voteint_nat landsize if bothreportland==1 & male==0, c(`aplus') tau(`voteint_nat_sd_0_5') beta(.6)
local voteint_nat_0_6_5=r(sampsi_h_tot)
local voteint_nat_l_0_6_5=r(sampsi_h_l)
local voteint_nat_r_0_6_5=r(sampsi_h_r)
local voteint_nat_0_6_2=.
local voteint_nat_0_6_1=.
rdsampsi voteint_nat landsize if bothreportland==1 & male==0, c(`aplus') tau(`voteint_nat_sd_0_8') beta(.8)
local voteint_nat_0_8_8=r(sampsi_h_tot)
local voteint_nat_l_0_8_8=r(sampsi_h_l)
local voteint_nat_r_0_8_8=r(sampsi_h_r)
rdsampsi voteint_nat landsize if bothreportland==1 & male==0, c(`aplus') tau(`voteint_nat_sd_0_5') beta(.8)
local voteint_nat_0_8_5=r(sampsi_h_tot)
local voteint_nat_l_0_8_5=r(sampsi_h_l)
local voteint_nat_r_0_8_5=r(sampsi_h_r)
local voteint_nat_0_8_2=.
local voteint_nat_0_8_1=.
rdsampsi voteint_nat landsize if bothreportland==1 & male==0, c(`aplus') tau(`voteint_nat_sd_0_8') beta(.95)
local voteint_nat_0_95_8=r(sampsi_h_tot)
local voteint_nat_l_0_95_8=r(sampsi_h_l)
local voteint_nat_r_0_95_8=r(sampsi_h_r)
local voteint_nat_0_95_5=.
local voteint_nat_0_95_2=.
local voteint_nat_0_95_1=.

rdsampsi dem_pref landsize if bothreportland==1 & male==0, c(`aplus') tau(`dem_pref_sd_0_8') beta(.6)
local dem_pref_0_6_8=r(sampsi_h_tot)
local dem_pref_l_0_6_8=r(sampsi_h_l)
local dem_pref_r_0_6_8=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==0, c(`aplus') tau(`dem_pref_sd_0_5') beta(.6)
local dem_pref_0_6_5=r(sampsi_h_tot)
local dem_pref_l_0_6_5=r(sampsi_h_l)
local dem_pref_r_0_6_5=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==0, c(`aplus') tau(`dem_pref_sd_0_2') beta(.6)
local dem_pref_0_6_2=r(sampsi_h_tot)
local dem_pref_l_0_6_2=r(sampsi_h_l)
local dem_pref_r_0_6_2=r(sampsi_h_r)
local dem_pref_0_6_1=.
rdsampsi dem_pref landsize if bothreportland==1 & male==0, c(`aplus') tau(`dem_pref_sd_0_8') beta(.8)
local dem_pref_0_8_8=r(sampsi_h_tot)
local dem_pref_l_0_8_8=r(sampsi_h_l)
local dem_pref_r_0_8_8=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==0, c(`aplus') tau(`dem_pref_sd_0_5') beta(.8)
local dem_pref_0_8_5=r(sampsi_h_tot)
local dem_pref_l_0_8_5=r(sampsi_h_l)
local dem_pref_r_0_8_5=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==0, c(`aplus') tau(`dem_pref_sd_0_2') beta(.8)
local dem_pref_0_8_2=r(sampsi_h_tot)
local dem_pref_l_0_8_2=r(sampsi_h_l)
local dem_pref_r_0_8_2=r(sampsi_h_r)
local dem_pref_0_8_1=.
rdsampsi dem_pref landsize if bothreportland==1 & male==0, c(`aplus') tau(`dem_pref_sd_0_8') beta(.95)
local dem_pref_0_95_8=r(sampsi_h_tot)
local dem_pref_l_0_95_8=r(sampsi_h_l)
local dem_pref_r_0_95_8=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==0, c(`aplus') tau(`dem_pref_sd_0_5') beta(.95)
local dem_pref_0_95_5=r(sampsi_h_tot)
local dem_pref_l_0_95_5=r(sampsi_h_l)
local dem_pref_r_0_95_5=r(sampsi_h_r)
local dem_pref_0_95_2=.
local dem_pref_0_95_1=.

rdsampsi demo_satisfy landsize if bothreportland==1 & male==0, c(`aplus') tau(`demo_satisfy_sd_0_8') beta(.6)
local demo_satisfy_0_6_8=r(sampsi_h_tot)
local demo_satisfy_l_0_6_8=r(sampsi_h_l)
local demo_satisfy_r_0_6_8=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==0, c(`aplus') tau(`demo_satisfy_sd_0_5') beta(.6)
local demo_satisfy_0_6_5=r(sampsi_h_tot)
local demo_satisfy_l_0_6_5=r(sampsi_h_l)
local demo_satisfy_r_0_6_5=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==0, c(`aplus') tau(`demo_satisfy_sd_0_2') beta(.6)
local demo_satisfy_0_6_2=r(sampsi_h_tot)
local demo_satisfy_l_0_6_2=r(sampsi_h_l)
local demo_satisfy_r_0_6_2=r(sampsi_h_r)
local demo_satisfy_0_6_1=.
rdsampsi demo_satisfy landsize if bothreportland==1 & male==0, c(`aplus') tau(`demo_satisfy_sd_0_8') beta(.8)
local demo_satisfy_0_8_8=r(sampsi_h_tot)
local demo_satisfy_l_0_8_8=r(sampsi_h_l)
local demo_satisfy_r_0_8_8=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==0, c(`aplus') tau(`demo_satisfy_sd_0_5') beta(.8)
local demo_satisfy_0_8_5=r(sampsi_h_tot)
local demo_satisfy_l_0_8_5=r(sampsi_h_l)
local demo_satisfy_r_0_8_5=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==0, c(`aplus') tau(`demo_satisfy_sd_0_2') beta(.8)
local demo_satisfy_0_8_2=r(sampsi_h_tot)
local demo_satisfy_l_0_8_2=r(sampsi_h_l)
local demo_satisfy_r_0_8_2=r(sampsi_h_r)
local demo_satisfy_0_8_1=.
rdsampsi demo_satisfy landsize if bothreportland==1 & male==0, c(`aplus') tau(`demo_satisfy_sd_0_8') beta(.95)
local demo_satisfy_0_95_8=r(sampsi_h_tot)
local demo_satisfy_l_0_95_8=r(sampsi_h_l)
local demo_satisfy_r_0_95_8=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==0, c(`aplus') tau(`demo_satisfy_sd_0_5') beta(.95)
local demo_satisfy_0_95_5=r(sampsi_h_tot)
local demo_satisfy_l_0_95_5=r(sampsi_h_l)
local demo_satisfy_r_0_95_5=r(sampsi_h_r)
local demo_satisfy_0_95_2=.
local demo_satisfy_0_95_1=.

rdsampsi wtpcash_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_lb_sd_0_8') beta(.6)
local wtpcash_lb_0_6_8=r(sampsi_h_tot)
local wtpcash_lb_l_0_6_8=r(sampsi_h_l)
local wtpcash_lb_r_0_6_8=r(sampsi_h_r)
rdsampsi wtpcash_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_lb_sd_0_5') beta(.6)
local wtpcash_lb_0_6_5=r(sampsi_h_tot)
local wtpcash_lb_l_0_6_5=r(sampsi_h_l)
local wtpcash_lb_r_0_6_5=r(sampsi_h_r)
rdsampsi wtpcash_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_lb_sd_0_2') beta(.6)
local wtpcash_lb_0_6_2=r(sampsi_h_tot)
local wtpcash_lb_l_0_6_2=r(sampsi_h_l)
local wtpcash_lb_r_0_6_2=r(sampsi_h_r)
local wtpcash_lb_0_6_1=.
rdsampsi wtpcash_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_lb_sd_0_8') beta(.8)
local wtpcash_lb_0_8_8=r(sampsi_h_tot)
local wtpcash_lb_l_0_8_8=r(sampsi_h_l)
local wtpcash_lb_r_0_8_8=r(sampsi_h_r)
rdsampsi wtpcash_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_lb_sd_0_5') beta(.8)
local wtpcash_lb_0_8_5=r(sampsi_h_tot)
local wtpcash_lb_l_0_8_5=r(sampsi_h_l)
local wtpcash_lb_r_0_8_5=r(sampsi_h_r)
rdsampsi wtpcash_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_lb_sd_0_2') beta(.8)
local wtpcash_lb_0_8_2=r(sampsi_h_tot)
local wtpcash_lb_l_0_8_2=r(sampsi_h_l)
local wtpcash_lb_r_0_8_2=r(sampsi_h_r)
local wtpcash_lb_0_8_1=.
rdsampsi wtpcash_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_lb_sd_0_8') beta(.95)
local wtpcash_lb_0_95_8=r(sampsi_h_tot)
local wtpcash_lb_l_0_95_8=r(sampsi_h_l)
local wtpcash_lb_r_0_95_8=r(sampsi_h_r)
rdsampsi wtpcash_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_lb_sd_0_5') beta(.95)
local wtpcash_lb_0_95_5=r(sampsi_h_tot)
local wtpcash_lb_l_0_95_5=r(sampsi_h_l)
local wtpcash_lb_r_0_95_5=r(sampsi_h_r)
local wtpcash_lb_0_95_2=.
local wtpcash_lb_0_95_1=.

rdsampsi wtpcash_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_ub_sd_0_8') beta(.6)
local wtpcash_ub_0_6_8=r(sampsi_h_tot)
local wtpcash_ub_l_0_6_8=r(sampsi_h_l)
local wtpcash_ub_r_0_6_8=r(sampsi_h_r)
rdsampsi wtpcash_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_ub_sd_0_5') beta(.6)
local wtpcash_ub_0_6_5=r(sampsi_h_tot)
local wtpcash_ub_l_0_6_5=r(sampsi_h_l)
local wtpcash_ub_r_0_6_5=r(sampsi_h_r)
rdsampsi wtpcash_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_ub_sd_0_2') beta(.6)
local wtpcash_ub_0_6_2=r(sampsi_h_tot)
local wtpcash_ub_l_0_6_2=r(sampsi_h_l)
local wtpcash_ub_r_0_6_2=r(sampsi_h_r)
local wtpcash_ub_0_6_1=.
rdsampsi wtpcash_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_ub_sd_0_8') beta(.8)
local wtpcash_ub_0_8_8=r(sampsi_h_tot)
local wtpcash_ub_l_0_8_8=r(sampsi_h_l)
local wtpcash_ub_r_0_8_8=r(sampsi_h_r)
rdsampsi wtpcash_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_ub_sd_0_5') beta(.8)
local wtpcash_ub_0_8_5=r(sampsi_h_tot)
local wtpcash_ub_l_0_8_5=r(sampsi_h_l)
local wtpcash_ub_r_0_8_5=r(sampsi_h_r)
rdsampsi wtpcash_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_ub_sd_0_2') beta(.8)
local wtpcash_ub_0_8_2=r(sampsi_h_tot)
local wtpcash_ub_l_0_8_2=r(sampsi_h_l)
local wtpcash_ub_r_0_8_2=r(sampsi_h_r)
local wtpcash_ub_0_8_1=.
rdsampsi wtpcash_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_ub_sd_0_8') beta(.95)
local wtpcash_ub_0_95_8=r(sampsi_h_tot)
local wtpcash_ub_l_0_95_8=r(sampsi_h_l)
local wtpcash_ub_r_0_95_8=r(sampsi_h_r)
rdsampsi wtpcash_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpcash_ub_sd_0_5') beta(.95)
local wtpcash_ub_0_95_5=r(sampsi_h_tot)
local wtpcash_ub_l_0_95_5=r(sampsi_h_l)
local wtpcash_ub_r_0_95_5=r(sampsi_h_r)
local wtpcash_ub_0_95_2=.
local wtpcash_ub_0_95_1=.

rdsampsi wtpland_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_lb_sd_0_8') beta(.6)
local wtpland_lb_0_6_8=r(sampsi_h_tot)
local wtpland_lb_l_0_6_8=r(sampsi_h_l)
local wtpland_lb_r_0_6_8=r(sampsi_h_r)
rdsampsi wtpland_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_lb_sd_0_5') beta(.6)
local wtpland_lb_0_6_5=r(sampsi_h_tot)
local wtpland_lb_l_0_6_5=r(sampsi_h_l)
local wtpland_lb_r_0_6_5=r(sampsi_h_r)
rdsampsi wtpland_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_lb_sd_0_2') beta(.6)
local wtpland_lb_0_6_2=r(sampsi_h_tot)
local wtpland_lb_l_0_6_2=r(sampsi_h_l)
local wtpland_lb_r_0_6_2=r(sampsi_h_r)
local wtpland_lb_0_6_1=.
rdsampsi wtpland_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_lb_sd_0_8') beta(.8)
local wtpland_lb_0_8_8=r(sampsi_h_tot)
local wtpland_lb_l_0_8_8=r(sampsi_h_l)
local wtpland_lb_r_0_8_8=r(sampsi_h_r)
rdsampsi wtpland_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_lb_sd_0_5') beta(.8)
local wtpland_lb_0_8_5=r(sampsi_h_tot)
local wtpland_lb_l_0_8_5=r(sampsi_h_l)
local wtpland_lb_r_0_8_5=r(sampsi_h_r)
rdsampsi wtpland_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_lb_sd_0_2') beta(.8)
local wtpland_lb_0_8_2=r(sampsi_h_tot)
local wtpland_lb_l_0_8_2=r(sampsi_h_l)
local wtpland_lb_r_0_8_2=r(sampsi_h_r)
local wtpland_lb_0_8_1=.
rdsampsi wtpland_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_lb_sd_0_8') beta(.95)
local wtpland_lb_0_95_8=r(sampsi_h_tot)
local wtpland_lb_l_0_95_8=r(sampsi_h_l)
local wtpland_lb_r_0_95_8=r(sampsi_h_r)
rdsampsi wtpland_lb landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_lb_sd_0_5') beta(.95)
local wtpland_lb_0_95_5=r(sampsi_h_tot)
local wtpland_lb_l_0_95_5=r(sampsi_h_l)
local wtpland_lb_r_0_95_5=r(sampsi_h_r)
local wtpland_lb_0_95_2=.
local wtpland_lb_0_95_1=.

rdsampsi wtpland_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_ub_sd_0_8') beta(.6)
local wtpland_ub_0_6_8=r(sampsi_h_tot)
local wtpland_ub_l_0_6_8=r(sampsi_h_l)
local wtpland_ub_r_0_6_8=r(sampsi_h_r)
rdsampsi wtpland_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_ub_sd_0_5') beta(.6)
local wtpland_ub_0_6_5=r(sampsi_h_tot)
local wtpland_ub_l_0_6_5=r(sampsi_h_l)
local wtpland_ub_r_0_6_5=r(sampsi_h_r)
rdsampsi wtpland_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_ub_sd_0_2') beta(.6)
local wtpland_ub_0_6_2=r(sampsi_h_tot)
local wtpland_ub_l_0_6_2=r(sampsi_h_l)
local wtpland_ub_r_0_6_2=r(sampsi_h_r)
local wtpland_ub_0_6_1=.
rdsampsi wtpland_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_ub_sd_0_8') beta(.8)
local wtpland_ub_0_8_8=r(sampsi_h_tot)
local wtpland_ub_l_0_8_8=r(sampsi_h_l)
local wtpland_ub_r_0_8_8=r(sampsi_h_r)
rdsampsi wtpland_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_ub_sd_0_5') beta(.8)
local wtpland_ub_0_8_5=r(sampsi_h_tot)
local wtpland_ub_l_0_8_5=r(sampsi_h_l)
local wtpland_ub_r_0_8_5=r(sampsi_h_r)
rdsampsi wtpland_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_ub_sd_0_2') beta(.8)
local wtpland_ub_0_8_2=r(sampsi_h_tot)
local wtpland_ub_l_0_8_2=r(sampsi_h_l)
local wtpland_ub_r_0_8_2=r(sampsi_h_r)
local wtpland_ub_0_8_1=.
rdsampsi wtpland_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_ub_sd_0_8') beta(.95)
local wtpland_ub_0_95_8=r(sampsi_h_tot)
local wtpland_ub_l_0_95_8=r(sampsi_h_l)
local wtpland_ub_r_0_95_8=r(sampsi_h_r)
rdsampsi wtpland_ub landsize if bothreportland==1 & male==0, c(`aplus') tau(`wtpland_ub_sd_0_5') beta(.95)
local wtpland_ub_0_95_5=r(sampsi_h_tot)
local wtpland_ub_l_0_95_5=r(sampsi_h_l)
local wtpland_ub_r_0_95_5=r(sampsi_h_r)
local wtpland_ub_0_95_2=.
local wtpland_ub_0_95_1=.




rdsampsi nplot landsize if bothreportland==1 & male==1, c(`aplus') tau(`nplot_sd_1_8') beta(.6) samph(`nplot_l' `nplot_r')
local nplot_1_6_8=r(sampsi_h_tot)
local nplot_l_1_6_8=r(sampsi_h_l)
local nplot_r_1_6_8=r(sampsi_h_r)
rdsampsi nplot landsize if bothreportland==1 & male==1, c(`aplus') tau(`nplot_sd_1_5') beta(.6) samph(`nplot_l' `nplot_r')
local nplot_1_6_5=r(sampsi_h_tot)
local nplot_l_1_6_5=r(sampsi_h_l)
local nplot_r_1_6_5=r(sampsi_h_r)
local nplot_1_6_2=.
local nplot_1_6_1=.
rdsampsi nplot landsize if bothreportland==1 & male==1, c(`aplus') tau(`nplot_sd_1_8') beta(.8) samph(`nplot_l' `nplot_r')
local nplot_1_8_8=r(sampsi_h_tot)
local nplot_l_1_8_8=r(sampsi_h_l)
local nplot_r_1_8_8=r(sampsi_h_r)
rdsampsi nplot landsize if bothreportland==1 & male==1, c(`aplus') tau(`nplot_sd_1_5') beta(.8) samph(`nplot_l' `nplot_r')
local nplot_1_8_5=r(sampsi_h_tot)
local nplot_l_1_8_5=r(sampsi_h_l)
local nplot_r_1_8_5=r(sampsi_h_r)
local nplot_1_8_2=.
local nplot_1_8_1=.
rdsampsi nplot landsize if bothreportland==1 & male==1, c(`aplus') tau(`nplot_sd_1_8') beta(.95) samph(`nplot_l' `nplot_r')
local nplot_1_95_8=r(sampsi_h_tot)
local nplot_l_1_95_8=r(sampsi_h_l)
local nplot_r_1_95_8=r(sampsi_h_r)
rdsampsi nplot landsize if bothreportland==1 & male==1, c(`aplus') tau(`nplot_sd_1_5') beta(.95) samph(`nplot_l' `nplot_r')
local nplot_1_95_5=r(sampsi_h_tot)
local nplot_l_1_95_5=r(sampsi_h_l)
local nplot_r_1_95_5=r(sampsi_h_r)
local nplot_1_95_2=.
local nplot_1_95_1=.

rdsampsi form7_tot landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_tot_sd_1_8') beta(.6) samph(`form7_tot_l' `form7_tot_r')
local form7_tot_1_6_8=r(sampsi_h_tot)
local form7_tot_l_1_6_8=r(sampsi_h_l)
local form7_tot_r_1_6_8=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_tot_sd_1_5') beta(.6) samph(`form7_tot_l' `form7_tot_r')
local form7_tot_1_6_5=r(sampsi_h_tot)
local form7_tot_l_1_6_5=r(sampsi_h_l)
local form7_tot_r_1_6_5=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_tot_sd_1_2') beta(.6) samph(`form7_tot_l' `form7_tot_r')
local form7_tot_1_6_2=r(sampsi_h_tot)
local form7_tot_l_1_6_2=r(sampsi_h_l)
local form7_tot_r_1_6_2=r(sampsi_h_r)
local form7_tot_1_6_1=.
rdsampsi form7_tot landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_tot_sd_1_8') beta(.8) samph(`form7_tot_l' `form7_tot_r')
local form7_tot_1_8_8=r(sampsi_h_tot)
local form7_tot_l_1_8_8=r(sampsi_h_l)
local form7_tot_r_1_8_8=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_tot_sd_1_5') beta(.8) samph(`form7_tot_l' `form7_tot_r')
local form7_tot_1_8_5=r(sampsi_h_tot)
local form7_tot_l_1_8_5=r(sampsi_h_l)
local form7_tot_r_1_8_5=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_tot_sd_1_2') beta(.8) samph(`form7_tot_l' `form7_tot_r')
local form7_tot_1_8_2=r(sampsi_h_tot)
local form7_tot_l_1_8_2=r(sampsi_h_l)
local form7_tot_r_1_8_2=r(sampsi_h_r)
local form7_tot_1_8_1=.
rdsampsi form7_tot landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_tot_sd_1_8') beta(.95) samph(`form7_tot_l' `form7_tot_r')
local form7_tot_1_95_8=r(sampsi_h_tot)
local form7_tot_l_1_95_8=r(sampsi_h_l)
local form7_tot_r_1_95_8=r(sampsi_h_r)
rdsampsi form7_tot landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_tot_sd_1_5') beta(.95) samph(`form7_tot_l' `form7_tot_r')
local form7_tot_1_95_5=r(sampsi_h_tot)
local form7_tot_l_1_95_5=r(sampsi_h_l)
local form7_tot_r_1_95_5=r(sampsi_h_r)
local form7_tot_1_95_2=.
local form7_tot_1_95_1=.

rdsampsi form7_femhoh landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_femhoh_sd_1_8') beta(.6) samph(`form7_femhoh_l' `form7_femhoh_r')
local form7_femhoh_1_6_8=r(sampsi_h_tot)
local form7_femhoh_l_1_6_8=r(sampsi_h_l)
local form7_femhoh_r_1_6_8=r(sampsi_h_r)
rdsampsi form7_femhoh landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_femhoh_sd_1_5') beta(.6) samph(`form7_femhoh_l' `form7_femhoh_r')
local form7_femhoh_1_6_5=r(sampsi_h_tot)
local form7_femhoh_l_1_6_5=r(sampsi_h_l)
local form7_femhoh_r_1_6_5=r(sampsi_h_r)
local form7_femhoh_1_6_2=.
local form7_femhoh_1_6_1=.
rdsampsi form7_femhoh landsize if bothreportland==1 & male==1, c(`aplus') tau(`form7_femhoh_sd_1_8') beta(.8) samph(`form7_femhoh_l' `form7_femhoh_r')
local form7_femhoh_1_8_8=r(sampsi_h_tot)
local form7_femhoh_l_1_8_8=r(sampsi_h_l)
local form7_femhoh_r_1_8_8=r(sampsi_h_r)
local form7_femhoh_1_8_5=.
local form7_femhoh_1_8_2=.
local form7_femhoh_1_8_1=.
local form7_femhoh_1_95_8=.
local form7_femhoh_1_95_5=.
local form7_femhoh_1_95_2=.
local form7_femhoh_1_95_1=.

rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==1, c(`aplus') tau(`f7_fhoh_nm_sd_1_8') beta(.6) samph(`f7_fhoh_nm_l' `f7_fhoh_nm_r')
local f7_fhoh_nm_1_6_8=r(sampsi_h_tot)
local f7_fhoh_nm_l_1_6_8=r(sampsi_h_l)
local f7_fhoh_nm_r_1_6_8=r(sampsi_h_r)
rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==1, c(`aplus') tau(`f7_fhoh_nm_sd_1_5') beta(.6) samph(`f7_fhoh_nm_l' `f7_fhoh_nm_r')
local f7_fhoh_nm_1_6_5=r(sampsi_h_tot)
local f7_fhoh_nm_l_1_6_5=r(sampsi_h_l)
local f7_fhoh_nm_r_1_6_5=r(sampsi_h_r)
local f7_fhoh_nm_1_6_2=.
local f7_fhoh_nm_1_6_1=.
rdsampsi f7_fhoh_nm landsize if bothreportland==1 & male==1, c(`aplus') tau(`f7_fhoh_nm_sd_1_8') beta(.8) samph(`f7_fhoh_nm_l' `f7_fhoh_nm_r')
local f7_fhoh_nm_1_8_8=r(sampsi_h_tot)
local f7_fhoh_nm_l_1_8_8=r(sampsi_h_l)
local f7_fhoh_nm_r_1_8_8=r(sampsi_h_r)
local f7_fhoh_nm_1_8_5=.
local f7_fhoh_nm_1_8_2=.
local f7_fhoh_nm_1_8_1=.
local f7_fhoh_nm_1_95_8=.
local f7_fhoh_nm_1_95_5=.
local f7_fhoh_nm_1_95_2=.
local f7_fhoh_nm_1_95_1=.

rdsampsi loan_num_fem landsize if bothreportland==1 & male==1, c(`aplus') tau(`loan_num_fem_sd_1_8') beta(.6) samph(`loan_num_fem_l' `loan_num_fem_r')
local loan_num_fem_1_6_8=r(sampsi_h_tot)
local loan_num_fem_l_1_6_8=r(sampsi_h_l)
local loan_num_fem_r_1_6_8=r(sampsi_h_r)
local loan_num_fem_1_6_5=.
local loan_num_fem_1_6_2=.
local loan_num_fem_1_6_1=.
local loan_num_fem_1_8_8=.
local loan_num_fem_1_8_5=.
local loan_num_fem_1_8_2=.
local loan_num_fem_1_8_1=.
local loan_num_fem_1_95_8=.
local loan_num_fem_1_95_5=.
local loan_num_fem_1_95_2=.
local loan_num_fem_1_95_1=.

rdsampsi loan_num_male landsize if bothreportland==1 & male==1, c(`aplus') tau(`loan_num_male_sd_1_8') beta(.6) samph(`loan_num_male_l' `loan_num_male_r')
local loan_num_male_1_6_8=r(sampsi_h_tot)
local loan_num_male_l_1_6_8=r(sampsi_h_l)
local loan_num_male_r_1_6_8=r(sampsi_h_r)
rdsampsi loan_num_male landsize if bothreportland==1 & male==1, c(`aplus') tau(`loan_num_male_sd_1_5') beta(.6) samph(`loan_num_male_l' `loan_num_male_r')
local loan_num_male_1_6_5=r(sampsi_h_tot)
local loan_num_male_l_1_6_5=r(sampsi_h_l)
local loan_num_male_r_1_6_5=r(sampsi_h_r)
rdsampsi loan_num_male landsize if bothreportland==1 & male==1, c(`aplus') tau(`loan_num_male_sd_1_2') beta(.6) samph(`loan_num_male_l' `loan_num_male_r')
local loan_num_male_1_6_2=r(sampsi_h_tot)
local loan_num_male_l_1_6_2=r(sampsi_h_l)
local loan_num_male_r_1_6_2=r(sampsi_h_r)
local loan_num_male_1_6_1=.
rdsampsi loan_num_male landsize if bothreportland==1 & male==1, c(`aplus') tau(`loan_num_male_sd_1_8') beta(.8) samph(`loan_num_male_l' `loan_num_male_r')
local loan_num_male_1_8_8=r(sampsi_h_tot)
local loan_num_male_l_1_8_8=r(sampsi_h_l)
local loan_num_male_r_1_8_8=r(sampsi_h_r)
rdsampsi loan_num_male landsize if bothreportland==1 & male==1, c(`aplus') tau(`loan_num_male_sd_1_5') beta(.8) samph(`loan_num_male_l' `loan_num_male_r')
local loan_num_male_1_8_5=r(sampsi_h_tot)
local loan_num_male_l_1_8_5=r(sampsi_h_l)
local loan_num_male_r_1_8_5=r(sampsi_h_r)
local loan_num_male_1_8_2=.
local loan_num_male_1_8_1=.
rdsampsi loan_num_male landsize if bothreportland==1 & male==1, c(`aplus') tau(`loan_num_male_sd_1_8') beta(.95) samph(`loan_num_male_l' `loan_num_male_r')
local loan_num_male_1_95_8=r(sampsi_h_tot)
local loan_num_male_l_1_95_8=r(sampsi_h_l)
local loan_num_male_r_1_95_8=r(sampsi_h_r)
rdsampsi loan_num_male landsize if bothreportland==1 & male==1, c(`aplus') tau(`loan_num_male_sd_1_5') beta(.95) samph(`loan_num_male_l' `loan_num_male_r')
local loan_num_male_1_95_5=r(sampsi_h_tot)
local loan_num_male_l_1_95_5=r(sampsi_h_l)
local loan_num_male_r_1_95_5=r(sampsi_h_r)
local loan_num_male_1_95_2=.
local loan_num_male_1_95_1=.

rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_fem_ln_sd_1_8') beta(.6) samph(`aginc_fem_ln_l' `aginc_fem_ln_r')
local aginc_fem_ln_1_6_8=r(sampsi_h_tot)
local aginc_fem_ln_l_1_6_8=r(sampsi_h_l)
local aginc_fem_ln_r_1_6_8=r(sampsi_h_r)
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_fem_ln_sd_1_5') beta(.6) samph(`aginc_fem_ln_l' `aginc_fem_ln_r')
local aginc_fem_ln_1_6_5=r(sampsi_h_tot)
local aginc_fem_ln_l_1_6_5=r(sampsi_h_l)
local aginc_fem_ln_r_1_6_5=r(sampsi_h_r)
local aginc_fem_ln_1_6_2=.
local aginc_fem_ln_1_6_1=.
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_fem_ln_sd_1_8') beta(.8) samph(`aginc_fem_ln_l' `aginc_fem_ln_r')
local aginc_fem_ln_1_8_8=r(sampsi_h_tot)
local aginc_fem_ln_l_1_8_8=r(sampsi_h_l)
local aginc_fem_ln_r_1_8_8=r(sampsi_h_r)
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_fem_ln_sd_1_5') beta(.8) samph(`aginc_fem_ln_l' `aginc_fem_ln_r')
local aginc_fem_ln_1_8_5=r(sampsi_h_tot)
local aginc_fem_ln_l_1_8_5=r(sampsi_h_l)
local aginc_fem_ln_r_1_8_5=r(sampsi_h_r)
local aginc_fem_ln_1_8_2=.
local aginc_fem_ln_1_8_1=.
rdsampsi aginc_fem_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_fem_ln_sd_1_8') beta(.95) samph(`aginc_fem_ln_l' `aginc_fem_ln_r')
local aginc_fem_ln_1_95_8=r(sampsi_h_tot)
local aginc_fem_ln_l_1_95_8=r(sampsi_h_l)
local aginc_fem_ln_r_1_95_8=r(sampsi_h_r)
local aginc_fem_ln_1_95_5=.
local aginc_fem_ln_1_95_2=.
local aginc_fem_ln_1_95_1=.

rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_8') beta(.6) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_6_8=r(sampsi_h_tot)
local nai_f_ln_l_1_6_8=r(sampsi_h_l)
local nai_f_ln_r_1_6_8=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_5') beta(.6) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_6_5=r(sampsi_h_tot)
local nai_f_ln_l_1_6_5=r(sampsi_h_l)
local nai_f_ln_r_1_6_5=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_2') beta(.6) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_6_2=r(sampsi_h_tot)
local nai_f_ln_l_1_6_2=r(sampsi_h_l)
local nai_f_ln_r_1_6_2=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_1') beta(.6) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_6_1=r(sampsi_h_tot)
local nai_f_ln_l_1_6_1=r(sampsi_h_l)
local nai_f_ln_r_1_6_1=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_8') beta(.8) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_8_8=r(sampsi_h_tot)
local nai_f_ln_l_1_8_8=r(sampsi_h_l)
local nai_f_ln_r_1_8_8=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_5') beta(.8) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_8_5=r(sampsi_h_tot)
local nai_f_ln_l_1_8_5=r(sampsi_h_l)
local nai_f_ln_r_1_8_5=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_2') beta(.8) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_8_2=r(sampsi_h_tot)
local nai_f_ln_l_1_8_2=r(sampsi_h_l)
local nai_f_ln_r_1_8_2=r(sampsi_h_r)
local nai_f_ln_1_8_1=.
rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_8') beta(.95) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_95_8=r(sampsi_h_tot)
local nai_f_ln_l_1_95_8=r(sampsi_h_l)
local nai_f_ln_r_1_95_8=r(sampsi_h_r)
rdsampsi nai_f_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`nai_f_ln_sd_1_5') beta(.95) samph(`nai_f_ln_l' `nai_f_ln_r')
local nai_f_ln_1_95_5=r(sampsi_h_tot)
local nai_f_ln_l_1_95_5=r(sampsi_h_l)
local nai_f_ln_r_1_95_5=r(sampsi_h_r)
local nai_f_ln_1_95_2=.
local nai_f_ln_1_95_1=.

rdsampsi aginc_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_ln_sd_1_8') beta(.6) samph(`aginc_ln_l' `aginc_ln_r')
local aginc_ln_1_6_8=r(sampsi_h_tot)
local aginc_ln_l_1_6_8=r(sampsi_h_l)
local aginc_ln_r_1_6_8=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_ln_sd_1_5') beta(.6) samph(`aginc_ln_l' `aginc_ln_r')
local aginc_ln_1_6_5=r(sampsi_h_tot)
local aginc_ln_l_1_6_5=r(sampsi_h_l)
local aginc_ln_r_1_6_5=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_ln_sd_1_2') beta(.6) samph(`aginc_ln_l' `aginc_ln_r')
local aginc_ln_1_6_2=r(sampsi_h_tot)
local aginc_ln_l_1_6_2=r(sampsi_h_l)
local aginc_ln_r_1_6_2=r(sampsi_h_r)
local aginc_ln_1_6_1=.
rdsampsi aginc_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_ln_sd_1_8') beta(.8) samph(`aginc_ln_l' `aginc_ln_r')
local aginc_ln_1_8_8=r(sampsi_h_tot)
local aginc_ln_l_1_8_8=r(sampsi_h_l)
local aginc_ln_r_1_8_8=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_ln_sd_1_5') beta(.8) samph(`aginc_ln_l' `aginc_ln_r')
local aginc_ln_1_8_5=r(sampsi_h_tot)
local aginc_ln_l_1_8_5=r(sampsi_h_l)
local aginc_ln_r_1_8_5=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_ln_sd_1_2') beta(.8) samph(`aginc_ln_l' `aginc_ln_r')
local aginc_ln_1_8_2=r(sampsi_h_tot)
local aginc_ln_l_1_8_2=r(sampsi_h_l)
local aginc_ln_r_1_8_2=r(sampsi_h_r)
local aginc_ln_1_8_1=.
rdsampsi aginc_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_ln_sd_1_8') beta(.95) samph(`aginc_ln_l' `aginc_ln_r')
local aginc_ln_1_95_8=r(sampsi_h_tot)
local aginc_ln_l_1_95_8=r(sampsi_h_l)
local aginc_ln_r_1_95_8=r(sampsi_h_r)
rdsampsi aginc_ln landsize if bothreportland==1 & male==1, c(`aplus') tau(`aginc_ln_sd_1_5') beta(.95) samph(`aginc_ln_l' `aginc_ln_r')
local aginc_ln_1_95_5=r(sampsi_h_tot)
local aginc_ln_l_1_95_5=r(sampsi_h_l)
local aginc_ln_r_1_95_5=r(sampsi_h_r)
local aginc_ln_1_95_2=.
local aginc_ln_1_95_1=.

rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ag_ind11_sd_1_8') beta(.6) samph(`a_ag_ind11_l' `a_ag_ind11_r')
local a_ag_ind11_1_6_8=r(sampsi_h_tot)
local a_ag_ind11_l_1_6_8=r(sampsi_h_l)
local a_ag_ind11_r_1_6_8=r(sampsi_h_r)
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ag_ind11_sd_1_5') beta(.6) samph(`a_ag_ind11_l' `a_ag_ind11_r')
local a_ag_ind11_1_6_5=r(sampsi_h_tot)
local a_ag_ind11_l_1_6_5=r(sampsi_h_l)
local a_ag_ind11_r_1_6_5=r(sampsi_h_r)
local a_ag_ind11_1_6_2=.
local a_ag_ind11_1_6_1=.
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ag_ind11_sd_1_8') beta(.8) samph(`a_ag_ind11_l' `a_ag_ind11_r')
local a_ag_ind11_1_8_8=r(sampsi_h_tot)
local a_ag_ind11_l_1_8_8=r(sampsi_h_l)
local a_ag_ind11_r_1_8_8=r(sampsi_h_r)
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ag_ind11_sd_1_5') beta(.8) samph(`a_ag_ind11_l' `a_ag_ind11_r')
local a_ag_ind11_1_8_5=r(sampsi_h_tot)
local a_ag_ind11_l_1_8_5=r(sampsi_h_l)
local a_ag_ind11_r_1_8_5=r(sampsi_h_r)
local a_ag_ind11_1_8_2=.
local a_ag_ind11_1_8_1=.
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ag_ind11_sd_1_8') beta(.95) samph(`a_ag_ind11_l' `a_ag_ind11_r')
local a_ag_ind11_1_95_8=r(sampsi_h_tot)
local a_ag_ind11_l_1_95_8=r(sampsi_h_l)
local a_ag_ind11_r_1_95_8=r(sampsi_h_r)
rdsampsi a_ag_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ag_ind11_sd_1_5') beta(.95) samph(`a_ag_ind11_l' `a_ag_ind11_r')
local a_ag_ind11_1_95_5=r(sampsi_h_tot)
local a_ag_ind11_l_1_95_5=r(sampsi_h_l)
local a_ag_ind11_r_1_95_5=r(sampsi_h_r)
local a_ag_ind11_1_95_2=.
local a_ag_ind11_1_95_1=.

local wt_ag_ind1_1_6_8=.
local wt_ag_ind1_1_6_5=.
local wt_ag_ind1_1_6_2=.
local wt_ag_ind1_1_6_1=.
local wt_ag_ind1_1_8_8=.
local wt_ag_ind1_1_8_5=.
local wt_ag_ind1_1_8_2=.
local wt_ag_ind1_1_8_1=.
local wt_ag_ind1_1_95_8=.
local wt_ag_ind1_1_95_5=.
local wt_ag_ind1_1_95_2=.
local wt_ag_ind1_1_95_1=.

local hg_ag_ind1_1_6_8=.
local hg_ag_ind1_1_6_5=.
local hg_ag_ind1_1_6_2=.
local hg_ag_ind1_1_6_1=.
local hg_ag_ind1_1_8_8=.
local hg_ag_ind1_1_8_5=.
local hg_ag_ind1_1_8_2=.
local hg_ag_ind1_1_8_1=.
local hg_ag_ind1_1_95_8=.
local hg_ag_ind1_1_95_5=.
local hg_ag_ind1_1_95_2=.
local hg_ag_ind1_1_95_1=.

local wha_ag_ind1_1_6_8=.
local wha_ag_ind1_1_6_5=.
local wha_ag_ind1_1_6_2=.
local wha_ag_ind1_1_6_1=.
local wha_ag_ind1_1_8_8=.
local wha_ag_ind1_1_8_5=.
local wha_ag_ind1_1_8_2=.
local wha_ag_ind1_1_8_1=.
local wha_ag_ind1_1_95_8=.
local wha_ag_ind1_1_95_5=.
local wha_ag_ind1_1_95_2=.
local wha_ag_ind1_1_95_1=.

rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ex_ind11_sd_1_8') beta(.6) samph(`a_ex_ind11_l' `a_ex_ind11_r')
local a_ex_ind11_1_6_8=r(sampsi_h_tot)
local a_ex_ind11_l_1_6_8=r(sampsi_h_l)
local a_ex_ind11_r_1_6_8=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ex_ind11_sd_1_5') beta(.6) samph(`a_ex_ind11_l' `a_ex_ind11_r')
local a_ex_ind11_1_6_5=r(sampsi_h_tot)
local a_ex_ind11_l_1_6_5=r(sampsi_h_l)
local a_ex_ind11_r_1_6_5=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ex_ind11_sd_1_2') beta(.6) samph(`a_ex_ind11_l' `a_ex_ind11_r')
local a_ex_ind11_1_6_2=r(sampsi_h_tot)
local a_ex_ind11_l_1_6_2=r(sampsi_h_l)
local a_ex_ind11_r_1_6_2=r(sampsi_h_r)
local a_ex_ind11_1_6_1=.
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ex_ind11_sd_1_8') beta(.8) samph(`a_ex_ind11_l' `a_ex_ind11_r')
local a_ex_ind11_1_8_8=r(sampsi_h_tot)
local a_ex_ind11_l_1_8_8=r(sampsi_h_l)
local a_ex_ind11_r_1_8_8=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ex_ind11_sd_1_5') beta(.8) samph(`a_ex_ind11_l' `a_ex_ind11_r')
local a_ex_ind11_1_8_5=r(sampsi_h_tot)
local a_ex_ind11_l_1_8_5=r(sampsi_h_l)
local a_ex_ind11_r_1_8_5=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ex_ind11_sd_1_2') beta(.8) samph(`a_ex_ind11_l' `a_ex_ind11_r')
local a_ex_ind11_1_8_2=r(sampsi_h_tot)
local a_ex_ind11_l_1_8_2=r(sampsi_h_l)
local a_ex_ind11_r_1_8_2=r(sampsi_h_r)
local a_ex_ind11_1_8_1=.
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ex_ind11_sd_1_8') beta(.95) samph(`a_ex_ind11_l' `a_ex_ind11_r')
local a_ex_ind11_1_95_8=r(sampsi_h_tot)
local a_ex_ind11_l_1_95_8=r(sampsi_h_l)
local a_ex_ind11_r_1_95_8=r(sampsi_h_r)
rdsampsi a_ex_ind11 landsize if bothreportland==1 & male==1, c(`aplus') tau(`a_ex_ind11_sd_1_5') beta(.95) samph(`a_ex_ind11_l' `a_ex_ind11_r')
local a_ex_ind11_1_95_5=r(sampsi_h_tot)
local a_ex_ind11_l_1_95_5=r(sampsi_h_l)
local a_ex_ind11_r_1_95_5=r(sampsi_h_r)
local a_ex_ind11_1_95_2=.
local a_ex_ind11_1_95_1=.

local wt_ex_ind1_1_6_8=.
local wt_ex_ind1_1_6_5=.
local wt_ex_ind1_1_6_2=.
local wt_ex_ind1_1_6_1=.
local wt_ex_ind1_1_8_8=.
local wt_ex_ind1_1_8_5=.
local wt_ex_ind1_1_8_2=.
local wt_ex_ind1_1_8_1=.
local wt_ex_ind1_1_95_8=.
local wt_ex_ind1_1_95_5=.
local wt_ex_ind1_1_95_2=.
local wt_ex_ind1_1_95_1=.

local hg_ex_ind1_1_6_8=.
local hg_ex_ind1_1_6_5=.
local hg_ex_ind1_1_6_2=.
local hg_ex_ind1_1_6_1=.
local hg_ex_ind1_1_8_8=.
local hg_ex_ind1_1_8_5=.
local hg_ex_ind1_1_8_2=.
local hg_ex_ind1_1_8_1=.
local hg_ex_ind1_1_95_8=.
local hg_ex_ind1_1_95_5=.
local hg_ex_ind1_1_95_2=.
local hg_ex_ind1_1_95_1=.

local wha_ex_ind1_1_6_8=.
local wha_ex_ind1_1_6_5=.
local wha_ex_ind1_1_6_2=.
local wha_ex_ind1_1_6_1=.
local wha_ex_ind1_1_8_8=.
local wha_ex_ind1_1_8_5=.
local wha_ex_ind1_1_8_2=.
local wha_ex_ind1_1_8_1=.
local wha_ex_ind1_1_95_8=.
local wha_ex_ind1_1_95_5=.
local wha_ex_ind1_1_95_2=.
local wha_ex_ind1_1_95_1=.

rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_8') beta(.6) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_6_8=r(sampsi_h_tot)
local pknow_min_c_l_1_6_8=r(sampsi_h_l)
local pknow_min_c_r_1_6_8=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_5') beta(.6) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_6_5=r(sampsi_h_tot)
local pknow_min_c_l_1_6_5=r(sampsi_h_l)
local pknow_min_c_r_1_6_5=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_2') beta(.6) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_6_2=r(sampsi_h_tot)
local pknow_min_c_l_1_6_2=r(sampsi_h_l)
local pknow_min_c_r_1_6_2=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_1') beta(.6) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_6_1=r(sampsi_h_tot)
local pknow_min_c_l_1_6_1=r(sampsi_h_l)
local pknow_min_c_r_1_6_1=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_8') beta(.8) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_8_8=r(sampsi_h_tot)
local pknow_min_c_l_1_8_8=r(sampsi_h_l)
local pknow_min_c_r_1_8_8=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_5') beta(.8) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_8_5=r(sampsi_h_tot)
local pknow_min_c_l_1_8_5=r(sampsi_h_l)
local pknow_min_c_r_1_8_5=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_2') beta(.8) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_8_2=r(sampsi_h_tot)
local pknow_min_c_l_1_8_2=r(sampsi_h_l)
local pknow_min_c_r_1_8_2=r(sampsi_h_r)
local pknow_min_c_1_8_1=.
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_8') beta(.95) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_95_8=r(sampsi_h_tot)
local pknow_min_c_l_1_95_8=r(sampsi_h_l)
local pknow_min_c_r_1_95_8=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_5') beta(.95) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_95_5=r(sampsi_h_tot)
local pknow_min_c_l_1_95_5=r(sampsi_h_l)
local pknow_min_c_r_1_95_5=r(sampsi_h_r)
rdsampsi pknow_min_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_min_c_sd_1_2') beta(.95) samph(`pknow_min_c_l' `pknow_min_c_r')
local pknow_min_c_1_95_2=r(sampsi_h_tot)
local pknow_min_c_l_1_95_2=r(sampsi_h_l)
local pknow_min_c_r_1_95_2=r(sampsi_h_r)
local pknow_min_c_1_95_1=.

rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_8') beta(.6) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_6_8=r(sampsi_h_tot)
local pknow_vta_c_l_1_6_8=r(sampsi_h_l)
local pknow_vta_c_r_1_6_8=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_5') beta(.6) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_6_5=r(sampsi_h_tot)
local pknow_vta_c_l_1_6_5=r(sampsi_h_l)
local pknow_vta_c_r_1_6_5=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_2') beta(.6) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_6_2=r(sampsi_h_tot)
local pknow_vta_c_l_1_6_2=r(sampsi_h_l)
local pknow_vta_c_r_1_6_2=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_1') beta(.6) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_6_1=r(sampsi_h_tot)
local pknow_vta_c_l_1_6_1=r(sampsi_h_l)
local pknow_vta_c_r_1_6_1=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_8') beta(.8) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_8_8=r(sampsi_h_tot)
local pknow_vta_c_l_1_8_8=r(sampsi_h_l)
local pknow_vta_c_r_1_8_8=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_5') beta(.8) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_8_5=r(sampsi_h_tot)
local pknow_vta_c_l_1_8_5=r(sampsi_h_l)
local pknow_vta_c_r_1_8_5=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_2') beta(.8) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_8_2=r(sampsi_h_tot)
local pknow_vta_c_l_1_8_2=r(sampsi_h_l)
local pknow_vta_c_r_1_8_2=r(sampsi_h_r)
local pknow_vta_c_1_8_1=.
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_8') beta(.95) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_95_8=r(sampsi_h_tot)
local pknow_vta_c_l_1_95_8=r(sampsi_h_l)
local pknow_vta_c_r_1_95_8=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_5') beta(.95) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_95_5=r(sampsi_h_tot)
local pknow_vta_c_l_1_95_5=r(sampsi_h_l)
local pknow_vta_c_r_1_95_5=r(sampsi_h_r)
rdsampsi pknow_vta_c landsize if bothreportland==1 & male==1, c(`aplus') tau(`pknow_vta_c_sd_1_2') beta(.95) samph(`pknow_vta_c_l' `pknow_vta_c_r')
local pknow_vta_c_1_95_2=r(sampsi_h_tot)
local pknow_vta_c_l_1_95_2=r(sampsi_h_l)
local pknow_vta_c_r_1_95_2=r(sampsi_h_r)
local pknow_vta_c_1_95_1=.

rdsampsi voteint_nat landsize if bothreportland==1 & male==1, c(`aplus') tau(`voteint_nat_sd_1_8') beta(.6) samph(`voteint_nat_l' `voteint_nat_r')
local voteint_nat_1_6_8=r(sampsi_h_tot)
local voteint_nat_l_1_6_8=r(sampsi_h_l)
local voteint_nat_r_1_6_8=r(sampsi_h_r)
rdsampsi voteint_nat landsize if bothreportland==1 & male==1, c(`aplus') tau(`voteint_nat_sd_1_5') beta(.6) samph(`voteint_nat_l' `voteint_nat_r')
local voteint_nat_1_6_5=r(sampsi_h_tot)
local voteint_nat_l_1_6_5=r(sampsi_h_l)
local voteint_nat_r_1_6_5=r(sampsi_h_r)
local voteint_nat_1_6_2=.
local voteint_nat_1_6_1=.
rdsampsi voteint_nat landsize if bothreportland==1 & male==1, c(`aplus') tau(`voteint_nat_sd_1_8') beta(.8) samph(`voteint_nat_l' `voteint_nat_r')
local voteint_nat_1_8_8=r(sampsi_h_tot)
local voteint_nat_l_1_8_8=r(sampsi_h_l)
local voteint_nat_r_1_8_8=r(sampsi_h_r)
rdsampsi voteint_nat landsize if bothreportland==1 & male==1, c(`aplus') tau(`voteint_nat_sd_1_5') beta(.8) samph(`voteint_nat_l' `voteint_nat_r')
local voteint_nat_1_8_5=r(sampsi_h_tot)
local voteint_nat_l_1_8_5=r(sampsi_h_l)
local voteint_nat_r_1_8_5=r(sampsi_h_r)
local voteint_nat_1_8_2=.
local voteint_nat_1_8_1=.
local voteint_nat_1_95_8=.
local voteint_nat_1_95_5=.
local voteint_nat_1_95_2=.
local voteint_nat_1_95_1=.

rdsampsi dem_pref landsize if bothreportland==1 & male==1, c(`aplus') tau(`dem_pref_sd_1_8') beta(.6) samph(`dem_pref_l' `dem_pref_r')
local dem_pref_1_6_8=r(sampsi_h_tot)
local dem_pref_l_1_6_8=r(sampsi_h_l)
local dem_pref_r_1_6_8=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==1, c(`aplus') tau(`dem_pref_sd_1_5') beta(.6) samph(`dem_pref_l' `dem_pref_r')
local dem_pref_1_6_5=r(sampsi_h_tot)
local dem_pref_l_1_6_5=r(sampsi_h_l)
local dem_pref_r_1_6_5=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==1, c(`aplus') tau(`dem_pref_sd_1_2') beta(.6) samph(`dem_pref_l' `dem_pref_r')
local dem_pref_1_6_2=r(sampsi_h_tot)
local dem_pref_l_1_6_2=r(sampsi_h_l)
local dem_pref_r_1_6_2=r(sampsi_h_r)
local dem_pref_1_6_1=.
rdsampsi dem_pref landsize if bothreportland==1 & male==1, c(`aplus') tau(`dem_pref_sd_1_8') beta(.8) samph(`dem_pref_l' `dem_pref_r')
local dem_pref_1_8_8=r(sampsi_h_tot)
local dem_pref_l_1_8_8=r(sampsi_h_l)
local dem_pref_r_1_8_8=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==1, c(`aplus') tau(`dem_pref_sd_1_5') beta(.8) samph(`dem_pref_l' `dem_pref_r')
local dem_pref_1_8_5=r(sampsi_h_tot)
local dem_pref_l_1_8_5=r(sampsi_h_l)
local dem_pref_r_1_8_5=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==1, c(`aplus') tau(`dem_pref_sd_1_2') beta(.8) samph(`dem_pref_l' `dem_pref_r')
local dem_pref_1_8_2=r(sampsi_h_tot)
local dem_pref_l_1_8_2=r(sampsi_h_l)
local dem_pref_r_1_8_2=r(sampsi_h_r)
local dem_pref_1_8_1=.
rdsampsi dem_pref landsize if bothreportland==1 & male==1, c(`aplus') tau(`dem_pref_sd_1_8') beta(.95) samph(`dem_pref_l' `dem_pref_r')
local dem_pref_1_95_8=r(sampsi_h_tot)
local dem_pref_l_1_95_8=r(sampsi_h_l)
local dem_pref_r_1_95_8=r(sampsi_h_r)
rdsampsi dem_pref landsize if bothreportland==1 & male==1, c(`aplus') tau(`dem_pref_sd_1_5') beta(.95) samph(`dem_pref_l' `dem_pref_r')
local dem_pref_1_95_5=r(sampsi_h_tot)
local dem_pref_l_1_95_5=r(sampsi_h_l)
local dem_pref_r_1_95_5=r(sampsi_h_r)
local dem_pref_1_95_2=.
local dem_pref_1_95_1=.

rdsampsi demo_satisfy landsize if bothreportland==1 & male==1, c(`aplus') tau(`demo_satisfy_sd_1_8') beta(.6) samph(`demo_satisfy_l' `demo_satisfy_r')
local demo_satisfy_1_6_8=r(sampsi_h_tot)
local demo_satisfy_l_1_6_8=r(sampsi_h_l)
local demo_satisfy_r_1_6_8=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==1, c(`aplus') tau(`demo_satisfy_sd_1_5') beta(.6) samph(`demo_satisfy_l' `demo_satisfy_r')
local demo_satisfy_1_6_5=r(sampsi_h_tot)
local demo_satisfy_l_1_6_5=r(sampsi_h_l)
local demo_satisfy_r_1_6_5=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==1, c(`aplus') tau(`demo_satisfy_sd_1_2') beta(.6) samph(`demo_satisfy_l' `demo_satisfy_r')
local demo_satisfy_1_6_2=r(sampsi_h_tot)
local demo_satisfy_l_1_6_2=r(sampsi_h_l)
local demo_satisfy_r_1_6_2=r(sampsi_h_r)
local demo_satisfy_1_6_1=.
rdsampsi demo_satisfy landsize if bothreportland==1 & male==1, c(`aplus') tau(`demo_satisfy_sd_1_8') beta(.8) samph(`demo_satisfy_l' `demo_satisfy_r')
local demo_satisfy_1_8_8=r(sampsi_h_tot)
local demo_satisfy_l_1_8_8=r(sampsi_h_l)
local demo_satisfy_r_1_8_8=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==1, c(`aplus') tau(`demo_satisfy_sd_1_5') beta(.8) samph(`demo_satisfy_l' `demo_satisfy_r')
local demo_satisfy_1_8_5=r(sampsi_h_tot)
local demo_satisfy_l_1_8_5=r(sampsi_h_l)
local demo_satisfy_r_1_8_5=r(sampsi_h_r)
local demo_satisfy_1_8_2=.
local demo_satisfy_1_8_1=.
rdsampsi demo_satisfy landsize if bothreportland==1 & male==1, c(`aplus') tau(`demo_satisfy_sd_1_8') beta(.95) samph(`demo_satisfy_l' `demo_satisfy_r')
local demo_satisfy_1_95_8=r(sampsi_h_tot)
local demo_satisfy_l_1_95_8=r(sampsi_h_l)
local demo_satisfy_r_1_95_8=r(sampsi_h_r)
rdsampsi demo_satisfy landsize if bothreportland==1 & male==1, c(`aplus') tau(`demo_satisfy_sd_1_5') beta(.95) samph(`demo_satisfy_l' `demo_satisfy_r')
local demo_satisfy_1_95_5=r(sampsi_h_tot)
local demo_satisfy_l_1_95_5=r(sampsi_h_l)
local demo_satisfy_r_1_95_5=r(sampsi_h_r)
local demo_satisfy_1_95_2=.
local demo_satisfy_1_95_1=.

local wtpcash_lb_1_6_8=.
local wtpcash_lb_1_6_5=.
local wtpcash_lb_1_6_2=.
local wtpcash_lb_1_6_1=.
local wtpcash_lb_1_8_8=.
local wtpcash_lb_1_8_5=.
local wtpcash_lb_1_8_2=.
local wtpcash_lb_1_8_1=.
local wtpcash_lb_1_95_8=.
local wtpcash_lb_1_95_5=.
local wtpcash_lb_1_95_2=.
local wtpcash_lb_1_95_1=.

local wtpcash_ub_1_6_8=.
local wtpcash_ub_1_6_5=.
local wtpcash_ub_1_6_2=.
local wtpcash_ub_1_6_1=.
local wtpcash_ub_1_8_8=.
local wtpcash_ub_1_8_5=.
local wtpcash_ub_1_8_2=.
local wtpcash_ub_1_8_1=.
local wtpcash_ub_1_95_8=.
local wtpcash_ub_1_95_5=.
local wtpcash_ub_1_95_2=.
local wtpcash_ub_1_95_1=.

local wtpland_lb_1_6_8=.
local wtpland_lb_1_6_5=.
local wtpland_lb_1_6_2=.
local wtpland_lb_1_6_1=.
local wtpland_lb_1_8_8=.
local wtpland_lb_1_8_5=.
local wtpland_lb_1_8_2=.
local wtpland_lb_1_8_1=.
local wtpland_lb_1_95_8=.
local wtpland_lb_1_95_5=.
local wtpland_lb_1_95_2=.
local wtpland_lb_1_95_1=.

local wtpland_ub_1_6_8=.
local wtpland_ub_1_6_5=.
local wtpland_ub_1_6_2=.
local wtpland_ub_1_6_1=.
local wtpland_ub_1_8_8=.
local wtpland_ub_1_8_5=.
local wtpland_ub_1_8_2=.
local wtpland_ub_1_8_1=.
local wtpland_ub_1_95_8=.
local wtpland_ub_1_95_5=.
local wtpland_ub_1_95_2=.
local wtpland_ub_1_95_1=.


foreach cat in `varcat'{
	foreach var in ``cat''{
		forval s=0/1{
			foreach t in 1 2 5 8 10 15 20 30 50 80 100{
				foreach b in 6 8 95{
					if ``var'_`s'_`b'_`t''<=``var'_n_`s''{
						local yn_`var'_`s'_`b'_`t'="Y"
					}
					else{
						local yn_`var'_`s'_`b'_`t'="N"
					}
				}
			}
		}
	}
}


* set row and column locals
local l=1
forval p=0(18)18{
	local i=1
	forval y=2/17{
		local r`i'_`l'=`y'+`p'
		local i=`i'+1
	}
	local l=`l'+1
}

local n=1
forval o=0(5)20{
	local j=1
	forval x=66/80{
		local c`j'_`n'=char(`x'+`o')
		local j=`j'+1
	}
	local n=`n'+1
}

local k=1
forval z=2/50{
	local w`k'=`z'
	local k=`k'+1
}

local label1="Female Responses"
local label2="Male Responses"


cap: erase "$power\rdsampsi2_yn.xlsx"
foreach cat in `varcat'{
	putexcel set "$power\rdsampsi2_yn.xlsx", sheet("`cat'") modify
	local q=1
	forval s=0/1{
		local r=1
		foreach var in ``cat''{
			if `r'==1{
				putexcel `c1_`r''`r1_`q''="`label`q''"
				putexcel `c1_`r''`r1_`q'', bold
			}
			putexcel `c1_`r''`r3_`q''="`var'"
			putexcel `c1_`r''`r3_`q'':`c4_`r''`r3_`q'', merge
			putexcel `c1_`r''`r5_`q''="Effect Size"
			putexcel `c1_`r''`r6_`q''="0.1"
			putexcel `c1_`r''`r7_`q''="0.2"
			putexcel `c1_`r''`r8_`q''="0.5"
			putexcel `c1_`r''`r9_`q''="0.8"
			putexcel `c1_`r''`r10_`q''="1.0"
			putexcel `c1_`r''`r11_`q''="1.5"
			putexcel `c1_`r''`r12_`q''="2.0"
			putexcel `c1_`r''`r13_`q''="3.0"
			putexcel `c1_`r''`r14_`q''="5.0"
			putexcel `c1_`r''`r15_`q''="8.0"
			putexcel `c1_`r''`r16_`q''="10.0"
			putexcel `c2_`r''`r4_`q''="Power"
			putexcel `c2_`r''`r4_`q'':`c4_`r''`r4_`q'', merge
			putexcel `c2_`r''`r5_`q''="60%"
			putexcel `c3_`r''`r5_`q''="80%"
			putexcel `c4_`r''`r5_`q''="95%"
			putexcel `c1_`r''`r3_`q'':`c4_`r''`r3_`q'', border(bottom)
			putexcel `c1_`r''`r5_`q'':`c4_`r''`r5_`q'', border(bottom)
			putexcel `c2_`r''`r4_`q'':`c2_`r''`r16_`q'', border(left)
			putexcel `c1_`r''`r3_`q'':`c4_`r''`r16_`q'', hcenter vcenter
			local u=6
			local c=1
			foreach t in 1 2 5 8 10 15 20 30 50 80 100{
				local v=2
				local i=1
				foreach b in 6 8 95{
					if ("`var'"!="wt_ag_ind1" & "`var'"!="hg_ag_ind1" & ///
						"`var'"!="wha_ag_ind1" & "`var'"!="wt_ex_ind1" & ///
						"`var'"!="hg_ex_ind1" & "`var'"!="wha_ex_ind1" & ///
						"`var'"!="wtpcash_lb" & "`var'"!="wtpcash_ub" & ///
						"`var'"!="wtpland_lb" & "`var'"!="wtpland_ub") | `s'==0{
						putexcel `c`v'_`r''`r`u'_`q''="`yn_`var'_`s'_`b'_`t''"
					}
					else{
						putexcel `c`v'_`r''`r`u'_`q''="."
					}
					local v=`v'+1
					local i=`i'+1
				}
				local u=`u'+1
				local c=`c'+1
			}
			local r=`r'+1
		}
		local q=`q'+1
	}
}

* change column widths
mata: b=xl()
mata: b.load_book("$power\rdsampsi2_yn.xlsx")
foreach cat in `varcat'{
	mata: b.set_sheet("`cat'")
	mata: b.set_column_width(`w1', `w49', 9.43)
}